Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

If I change the node version and do npm install, does the package versions in package-lock.json change?

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)

like image 390
Vishnu Sankaran Avatar asked Nov 06 '22 12:11

Vishnu Sankaran


1 Answers

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

like image 160
eazy_g Avatar answered Nov 14 '22 21:11

eazy_g