Bower manages the components for website like frameworks, libraries, assets, and utilities. It keeps track all the components and check regularly for there updates. Bower uses a manifest file bower.json file to keep track of packages.This tutorial will help you to install Bower (A package manager) on Ubuntu, Debian and LinuxMint operating systems.
1. Install Node.js & NPM
First 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
After successful installation of bower, check the installed version on your system using following command.
$ bower --version 1.7.9