install exact version npm
snippet in javascript

install exact version npm

user2257

npm install <package>@<version>

//example
npm install express@3.0.0

how to install specific package version npm

user1766

$ npm install express@4.16.1

+ express@4.16.1
added 48 packages from 36 contributors and audited 121 packages in 2.986s
found 0 vulnerabilities