Excellent software and practical tutorials
NPM It is a JavaScript package manager for the Node JavaScript platform. The objective of this article is to install NPM on RHEL 8 / CentOS 8. To install NPM on RHEL 8 / CentOS 8, we will use the dnf install command.
- How to install NPM on RHEL 8.
- How to search for modules using NPM.
- How to install modules using NPM.
- How to install modules from a Git repository.
Use the dnf command to install the npm package:
dnf install npm
Check the npm version to confirm the Npm installation:
npm --version
Install the module using the npm command. To search all available modules using NPM, enter:
npm search KEYWORD
To perform module installation using NPM, run:
npm install MODULE-NAME
To install a JavaScript module directly from a GIT repository, execute NPM with the URL of the actual module you wish to install.
For example, the following command will install the express module from its main git repository:
npm install git+https://git@github.com/visionmedia/express.git
Or use SSH to access
npm install git+ssh://git@github.com/visionmedia/express.git