How to Install Specific Package Version Npm


npm node.js

To install the specific version of the package you should follow the next syntax:

npm i <package>@<version> --save 

For example:

npm i lodash@4.17.20 --save

Because we have indicated the specific version, then it will be installed:

+ lodash@4.17.20
added 1 package from 2 contributors and audited 1 package in 1.466s
found 0 vulnerabilities
comments powered by Disqus