Suppose, I do npm install
and then I change the node version and then again do npm install
, will the installed packages in package-lock.json
and node_modules
change? (Assuming the packages were not updated on the npm registry meanwhile)
Asked
Active
Viewed 688 times
7

Vishnu Sankaran
- 669
- 6
- 20
-
Some of the packages can change depending upon their update availability. – Prabhjot Singh Kainth Nov 18 '19 at 11:04
-
1@PrabhjotSinghKainth Assuming the packages were not updated on the npm registry while we the above, will the node version affect the package versions installed? – Vishnu Sankaran Nov 18 '19 at 11:07
1 Answers
2
Was curious about this myself, so I switched node versions, deleted yarn.lock
and node_modules
in my project, and then re-installed. Zero updates were made to the yarn.lock
file

eazy_g
- 377
- 3
- 10