Bower manages the components for website like frameworks, libraries, assets, and utilities. It keeps track of all the components and checks regularly for their updates. Bower uses a manifest file bower.json file to keep track of packages.This tutorial will help you to install Bower on Ubuntu 19.04, 18.04 LTS, 16.04 LTS, and LinuxMint operating systems.
Step 1 – Install Node.js
First of all, you need to install node.js on your system. Use the following set of commands to add node.js PPA in your Ubuntu system and install it.
sudo apt-get install python-software-properties curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - sudo apt-get install nodejs
Make sure you have successfully installed node.js and NPM on your system
node --version npm --version
Step 2 – Install Bower using NPM
After installation of node.js and npm on your system, use following commands to install bower.
sudo npm install -g bower
Now, You have successfuly installed bower. Let’s check the installed version of bower on your system using following command.
bower --version 1.8.8