NPM (Node Package Manager) is a command-line tool for managing node modules for Node.js applications. It is used to install, update or delete a node module in your system. It also follows the pacakge.json file for proper management of node modules for an application.
The npmjs.com is the centralized repository containing all the node.js modules. Npm download the packages from npmjs and install them on a client machine. By default, NPM installs the latest version of an available module, but sometimes you may be required an older version of the module for your application.
This tutorial helps you for installing the old version of modules with NPM command-line tool.
The npm specific version installation uses the following syntax:
npm install [packagename]@[version]
Here pacakgename
is the name of the packages and version
is the version number to be install.
#nodejs #node #nodejs #npm