How to Install Bower 1.8.14 using NPM on Rocky Linux 9.2

To Install Bower 1.8.14 Using NPM On Rocky Linux 9.2

Introduction:

As websites are made of lot of things like frameworks.libraries,assets and utilities.

Bower manages all of these things.Bower is a package manager for web and dependency management tool which is built by Twitter. Bower manages the front-end components like html,css,js.It reduces the time and energy you need to spend hunting around the web for libraries like Susy and jQuery.Bower helps you to install update or delete the libraries within a single command.Bower depends on nodejs and npm .Bower packages sometimes relies on git so ensure you installed it on your system .This video covers the method to install bower 1.8.14 using npm on Rocky Linux 9.2.

Dependencies

git  gcc-c++ make 

NodeJS latest version

curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash –

Installation Procedure:

Step 1: Check the version of OS by using the below command

[root@Linuxhelp ~]# cat /etc/os-release
NAME="Rocky Linux"
VERSION="9.2 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.2"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.2 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.2"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.2"

Step 2: Install the dependencies that are required for nodejs by using the below command

[root@Linuxhelp ~]# yum install git gcc-c++ make -y
Rocky Linux 9 - BaseOS                                             3.7 kB/s | 4.1 kB     00:01    
Rocky Linux 9 - AppStream                                          4.7 kB/s | 4.5 kB     00:00    
Rocky Linux 9 - Extras                                             2.4 kB/s | 2.9 kB     00:01    
Dependencies resolved.
===================================================================================================
 Package                   Architecture    Version                        Repository          Size
===================================================================================================
Installing:
 gcc-c++                   x86_64          11.3.1-4.3.el9                 appstream           13 M
 git                       x86_64          2.39.3-1.el9_2                 appstream           61 k
 make                      x86_64          1:4.3-7.el9                    baseos             530 k
Installing dependencies:
 gcc                       x86_64          11.3.1-4.3.el9                 appstream           32 M
 git-core                  x86_64          2.39.3-1.el9_2                 appstream          4.2 M
 git-core-doc              noarch          2.39.3-1.el9_2                 appstream          2.6 M
 glibc-devel               x86_64          2.34-60.el9                    appstream           48 k
 glibc-headers             x86_64          2.34-60.el9                    appstream          448 k
 kernel-headers            x86_64          5.14.0-284.11.1.el9_2          appstream          4.8 M
 libstdc++-devel           x86_64          11.3.1-4.3.el9                 appstream          2.2 M
 libxcrypt-devel           x86_64          4.4.18-3.el9                   appstream           28 k
 perl-Error                noarch          1:0.17029-7.el9                appstream           41 k
 perl-Git                  noarch          2.39.3-1.el9_2                 appstream           37 k
 perl-TermReadKey          x86_64          2.38-11.el9                    appstream           36 k
 perl-lib                  x86_64          0.65-480.el9                   appstream           15 k

Transaction Summary
===================================================================================================
Install  15 Packages

Total download size: 60 M
Installed size: 175 M
Downloading Packages:
(1/15): libxcrypt-devel-4.4.18-3.el9.x86_64.rpm                    103 kB/s |  28 kB     00:00    
(2/15): perl-Error-0.17029-7.el9.noarch.rpm                        148 kB/s |  41 kB     00:00    
(3/15): perl-lib-0.65-480.el9.x86_64.rpm                           357 kB/s |  15 kB     00:00    
(4/15): perl-TermReadKey-2.38-11.el9.x86_64.rpm                    649 kB/s |  36 kB     00:00    
(5/15): perl-Git-2.39.3-1.el9_2.noarch.rpm                         565 kB/s |  37 kB     00:00    
(6/15): make-4.3-7.el9.x86_64.rpm                                  805 kB/s | 530 kB     00:00    
(7/15): libstdc++-devel-11.3.1-4.3.el9.x86_64.rpm                  3.2 MB/s | 2.2 MB     00:00    
(8/15): git-core-doc-2.39.3-1.el9_2.noarch.rpm                     2.4 MB/s | 2.6 MB     00:01    
(9/15): kernel-headers-5.14.0-284.11.1.el9_2.x86_64.rpm            3.6 MB/s | 4.8 MB     00:01    
(10/15): glibc-headers-2.34-60.el9.x86_64.rpm                      2.2 MB/s | 448 kB     00:00    
(11/15): glibc-devel-2.34-60.el9.x86_64.rpm                        846 kB/s |  48 kB     00:00    
(12/15): git-core-2.39.3-1.el9_2.x86_64.rpm                        2.7 MB/s | 4.2 MB     00:01    
(13/15): git-2.39.3-1.el9_2.x86_64.rpm                             877 kB/s |  61 kB     00:00    
(14/15): gcc-c++-11.3.1-4.3.el9.x86_64.rpm                         4.2 MB/s |  13 MB     00:03    
(15/15): gcc-11.3.1-4.3.el9.x86_64.rpm                             6.2 MB/s |  32 MB     00:05    
---------------------------------------------------------------------------------------------------
Total                                                              7.2 MB/s |  60 MB     00:08     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                           1/1 
  Installing       : git-core-2.39.3-1.el9_2.x86_64                                           1/15 
  Installing       : git-core-doc-2.39.3-1.el9_2.noarch                                       2/15 
  Installing       : glibc-headers-2.34-60.el9.x86_64                                         3/15 
  Installing       : libstdc++-devel-11.3.1-4.3.el9.x86_64                                    4/15 
  Installing       : perl-TermReadKey-2.38-11.el9.x86_64                                      5/15 
  Installing       : kernel-headers-5.14.0-284.11.1.el9_2.x86_64                              6/15 
  Installing       : glibc-devel-2.34-60.el9.x86_64                                           7/15 
  Installing       : libxcrypt-devel-4.4.18-3.el9.x86_64                                      8/15 
  Installing       : perl-lib-0.65-480.el9.x86_64                                             9/15 
  Installing       : perl-Error-1:0.17029-7.el9.noarch                                       10/15 
  Installing       : git-2.39.3-1.el9_2.x86_64                                               11/15 
  Installing       : perl-Git-2.39.3-1.el9_2.noarch                                          12/15 
  Installing       : make-1:4.3-7.el9.x86_64                                                 13/15 
  Installing       : gcc-11.3.1-4.3.el9.x86_64                                               14/15 
  Installing       : gcc-c++-11.3.1-4.3.el9.x86_64                                           15/15 
  Running scriptlet: gcc-c++-11.3.1-4.3.el9.x86_64                                           15/15 
  Verifying        : make-1:4.3-7.el9.x86_64                                                  1/15 
  Verifying        : perl-Error-1:0.17029-7.el9.noarch                                        2/15 
  Verifying        : libxcrypt-devel-4.4.18-3.el9.x86_64                                      3/15 
  Verifying        : perl-lib-0.65-480.el9.x86_64                                             4/15 
  Verifying        : kernel-headers-5.14.0-284.11.1.el9_2.x86_64                              5/15 
  Verifying        : perl-TermReadKey-2.38-11.el9.x86_64                                      6/15 
  Verifying        : perl-Git-2.39.3-1.el9_2.noarch                                           7/15 
  Verifying        : git-core-doc-2.39.3-1.el9_2.noarch                                       8/15 
  Verifying        : libstdc++-devel-11.3.1-4.3.el9.x86_64                                    9/15 
  Verifying        : gcc-c++-11.3.1-4.3.el9.x86_64                                           10/15 
  Verifying        : gcc-11.3.1-4.3.el9.x86_64                                               11/15 
  Verifying        : glibc-headers-2.34-60.el9.x86_64                                        12/15 
  Verifying        : glibc-devel-2.34-60.el9.x86_64                                          13/15 
  Verifying        : git-core-2.39.3-1.el9_2.x86_64                                          14/15 
  Verifying        : git-2.39.3-1.el9_2.x86_64                                               15/15 

Installed:
  gcc-11.3.1-4.3.el9.x86_64                     gcc-c++-11.3.1-4.3.el9.x86_64                      
  git-2.39.3-1.el9_2.x86_64                     git-core-2.39.3-1.el9_2.x86_64                     
  git-core-doc-2.39.3-1.el9_2.noarch            glibc-devel-2.34-60.el9.x86_64                     
  glibc-headers-2.34-60.el9.x86_64              kernel-headers-5.14.0-284.11.1.el9_2.x86_64        
  libstdc++-devel-11.3.1-4.3.el9.x86_64         libxcrypt-devel-4.4.18-3.el9.x86_64                
  make-1:4.3-7.el9.x86_64                       perl-Error-1:0.17029-7.el9.noarch                  
  perl-Git-2.39.3-1.el9_2.noarch                perl-TermReadKey-2.38-11.el9.x86_64                
  perl-lib-0.65-480.el9.x86_64                 

Complete!

Step 3: Download the latest node package manager by executing the below command

[root@Linuxhelp ~]# curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash -

================================================================================

                              DEPRECATION WARNING                            

  Node.js 10.x is no longer actively supported!

  You will not receive security or critical stability updates for this version.

  You should migrate to a supported version of Node.js as soon as possible.
  Use the installation script that corresponds to the version of Node.js you
  wish to install. e.g.

   * https://rpm.nodesource.com/setup_12.x - Node.js v12 LTS "Erbium"
   * https://rpm.nodesource.com/setup_14.x - Node.js v14 LTS "Fermium" (recommended)
   * https://rpm.nodesource.com/setup_16.x - Node.js v16 "Gallium"

  Please see https://github.com/nodejs/Release for details about which
  version may be appropriate for you.

  The NodeSource Node.js distributions repository contains
  information both about supported versions of Node.js and supported Linux
  distributions. To learn more about usage, see the repository:
    https://github.com/nodesource/distributions

================================================================================
================================================================================

Continuing in 20 seconds ...


## Installing the NodeSource Node.js 10.x repo...


## Inspecting system...

+ rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release || rpm -q --whatprovides fedora-release
+ uname -m

## Confirming "el9-x86_64" is supported...

+ curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_10.x/el/9/x86_64/nodesource-release-el9-1.noarch.rpm'

## Your distribution, identified as "rocky-release-9.2-1.5.el9.noarch", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support

Step 4: Install node.js by executing the below command

[root@Linuxhelp ~]# yum install nodejs -y
Last metadata expiration check: 0:01:56 ago on Sunday 11 June 2023 04:40:57 AM.
Dependencies resolved.
===================================================================================================
 Package                 Architecture  Version                              Repository        Size
===================================================================================================
Installing:
 nodejs                  x86_64        1:16.19.1-1.el9_2                    appstream        112 k
Installing dependencies:
 nodejs-libs             x86_64        1:16.19.1-1.el9_2                    appstream         14 M
Installing weak dependencies:
 nodejs-docs             noarch        1:16.19.1-1.el9_2                    appstream        7.0 M
 nodejs-full-i18n        x86_64        1:16.19.1-1.el9_2                    appstream        8.2 M
 npm                     x86_64        1:8.19.3-1.16.19.1.1.el9_2           appstream        1.7 M

Transaction Summary
===================================================================================================
Install  5 Packages

Total download size: 32 M
Installed size: 168 M


Downloading Packages:
(1/5): npm-8.19.3-1.16.19.1.1.el9_2.x86_64.rpm                     2.4 MB/s | 1.7 MB     00:00    
(2/5): nodejs-16.19.1-1.el9_2.x86_64.rpm                           1.4 MB/s | 112 kB     00:00    
(3/5): nodejs-docs-16.19.1-1.el9_2.noarch.rpm                      3.6 MB/s | 7.0 MB     00:01    
(4/5): nodejs-full-i18n-16.19.1-1.el9_2.x86_64.rpm                 2.8 MB/s | 8.2 MB     00:02    
(5/5): nodejs-libs-16.19.1-1.el9_2.x86_64.rpm                      4.2 MB/s |  14 MB     00:03    
---------------------------------------------------------------------------------------------------
Total                                                              7.3 MB/s |  32 MB     00:04     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: npm-1:8.19.3-1.16.19.1.1.el9_2.x86_64                                     1/1 
  Preparing        :                                                                           1/1 
  Installing       : nodejs-docs-1:16.19.1-1.el9_2.noarch                                      1/5 
  Installing       : nodejs-libs-1:16.19.1-1.el9_2.x86_64                                      2/5 
  Installing       : nodejs-full-i18n-1:16.19.1-1.el9_2.x86_64                                 3/5 
  Installing       : nodejs-1:16.19.1-1.el9_2.x86_64                                           4/5 
  Installing       : npm-1:8.19.3-1.16.19.1.1.el9_2.x86_64                                     5/5 
  Running scriptlet: npm-1:8.19.3-1.16.19.1.1.el9_2.x86_64                                     5/5 
  Verifying        : npm-1:8.19.3-1.16.19.1.1.el9_2.x86_64                                     1/5 
  Verifying        : nodejs-libs-1:16.19.1-1.el9_2.x86_64                                      2/5 
  Verifying        : nodejs-full-i18n-1:16.19.1-1.el9_2.x86_64                                 3/5 
  Verifying        : nodejs-1:16.19.1-1.el9_2.x86_64                                           4/5 
  Verifying        : nodejs-docs-1:16.19.1-1.el9_2.noarch                                      5/5 
Installed:
  nodejs-1:16.19.1-1.el9_2.x86_64                    nodejs-docs-1:16.19.1-1.el9_2.noarch         
  nodejs-full-i18n-1:16.19.1-1.el9_2.x86_64          nodejs-libs-1:16.19.1-1.el9_2.x86_64         
  npm-1:8.19.3-1.16.19.1.1.el9_2.x86_64             

Complete!

Step 5: Check the version of node by using the below command

[root@Linuxhelp ~]# node -v
v16.19.1

Step 6: Verify the version of npm by executing the below command

[root@Linuxhelp ~]# npm -v
8.19.3

Step 7: Install bower using npm as follows

[root@Linuxhelp ~]# npm install -g bower

added 1 package, and audited 2 packages in 18s

found 0 vulnerabilities
npm notice 
npm notice New major version of npm available! 8.19.3 -> 9.7.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.7.1
npm notice Run npm install -g npm@9.7.1 to update!
npm notice 

Step 8: Verify the version of bower by executing the below command

[root@Linuxhelp ~]# bower --version
1.8.14

Conclusion:

We have reached the end of this article. In this guide, we have walked you through the steps required to Install Bower 1.8.14 using NPM on Rocky Linux 9.2. Your feedback is much welcome.

Tag : Bower npm Linux
FAQ
Q
How to search for a package using Bower?
A
bower search is the command to search for a package using Bower.
Q
Does Bower check for dependencies and compatibilities?
A
Yes, bower checks for dependencies and compatibilities
Q
What does the package manager do in Bower?
A
Bower Package Manager is a tool for keeping track of what you've installed, installing and upgrading packages
Q
IS bower a package manager?
A
Yes, Bower is a package manager.
Q
What does the framework mean in Bower?
A
In Bower, Frameworks are large bodies of pre-written code to which you add your own code to solve a problem in a specific domain