In this tutorial you will learn:
- How to install NPM on Rhel 8.
- How to search for modules using NPM.
- How to install modules using NPM.
- How to install modules form a Git repository.
Software Requirements and Conventions Used
|Category||Requirements, Conventions or Software Version Used|
|System||RHEL 8 / CentOS 8|
|Software||npm 6.4.1 or higher|
|Other||Privileged access to your Linux system as root or via the
# - requires given linux commands to be executed with root privileges either directly as a root user or by use of
How to install npm on RHEL 8 / CentOS 8 step by step instructions
- Use the
dnfcommand to install
# dnf install npm
npmversion to confirm the Npm installation:
# npm --version 6.4.1
- Install modules using the
To search all available modules with NPM enter:
$ npm search KEYWORDTo perform a module installation with NPM run:
For example the bellow command will install the express module from its home git repository: