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)
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.