
Similarly, you can install any node modules with the specific version, but the condition is that all the required dependencies are available on the module. But you can specify the version number to install the specific version of a Node.js package.įor example, to install the cowsay package with version 1.1.0, type: npm install Installing Specific Version Node Module The default NPM installs the latest version of the package. The npm specific version installation uses the following syntax: npm install pacakgename is the name of the packages and version is the version number to be install. This tutorial helps you for installing the old version of modules with NPM command-line tool. 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. Npm download the packages from npmjs and install them on a client machine. ncurc.The is the centralized repository containing all the node.js modules. Max number of concurrent HTTP requests to registry. (default: 10)įilepath for the cache file. Default -cacheFile is ~/.ncu-cache.json and default -cacheExpiration is 10 minutes.Ĭlear the default cache, or the cache file specified by -cacheFile.Ĭache expiration in minutes. cacheĬache versions to a local cache file. Options that take no arguments can be negated by prefixing them with -no-, e.g.

Options are merged with the following precedence:


Red = major upgrade (and all major version zero).Run npm install to update your installed packages and package-lock.json. maintains existing semantic versioning policies, i.e.Npm-check-updates upgrades your package.json dependencies to the latest versions, ignoring specified versions.
