Bower manages the components for website like frameworks, libraries, assets, and utilities. It keeps track 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, Debian, and LinuxMint operating systems.
1. Install Node.js
First of all, you need to install node.js on your system. Use 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_6.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
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.0