How to Install Specific Package Version Npm


npm node.js

Hello! If you are from Ukraine, Belarus, Poland or India and looking for a job in Software Development, please reach me out by email.

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