Bower manages the components for website like frameworks, libraries, assets, and utilities. It keeps track all the components and check 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 (A package manager) on CentOS / RHEL 7/6/5 operating systems.
1. Install Node.js & NPM
If you already have node.js and npm installed on your system skip this step. Else you need to install node.js on your system first. Use following set of commands to install node.js and npm on your CentOS, RHEL system.
# yum install -y gcc-c++ make # curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash - # yum install nodejs
2. Install Bower using NPM
After installation of node.js and npm on your system, use following commands to install bower.
# npm install -g bower
After successful installation of bower, check the installed version on your system using following command.
# bower --version 1.7.9