Tuesday, May 21, 2024
 Popular · Latest · Hot · Upcoming
155
rated 0 times [  160] [ 5]  / answers: 1 / hits: 116747  / 8 Years ago, tue, december 6, 2016, 12:00:00

Currently, If I run npm install, it installs the updated version of already installed packages. How can I install the exact version as specified in the package.json file?


More From » node.js

 Answers
24

That behavior is really driven by the one specifying the versions in the package.json. If the version number looks like 1.0.0, without any other symbols, the exact version (1.0.0) should be installed.



So what you could do is simply modify the package.json and run a npm install then. Be sure to clear out the node_modules directory before you do that.



https://docs.npmjs.com/files/package.json#dependencies


[#59797] Saturday, December 3, 2016, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
uriahw

Total Points: 372
Total Questions: 93
Total Answers: 115

Location: Bahrain
Member since Fri, Sep 16, 2022
2 Years ago
;