npm is an online repository for the publishing of open-source Node.js projects. Node.js libraries published on npm repository can be installed as modules in any Node.js application.
node modules can be installed using the command ,
npm install <node_module>
Another important use for npm is dependency management. The node modules mentioned as dependencies in the package.json can be installed with by running the below command from the project root directory,
npm install