Bower manages the components for the 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 CentOS/RHEL 7/6/5 operating systems.
Step 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 systems.
yum install -y gcc-c++ make curl -sL https://rpm.nodesource.com/setup_8.x | sudo -E bash - yum install nodejs
Step 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 the bower, check the installed version on your system using the following command.
bower --version 1.8.2