[英]Node/NPM: If I upgrade my node version, should I rebuild the package-lock file?
I am using node version 11 and want to use 12.6.我正在使用节点版本 11 并想使用 12.6。 I had the package-lock.json file committed.
我提交了 package-lock.json 文件。 When upgrading, should I remove my node module,
npm install
, and commit the new package-lock.json
file?升级时,我应该删除我的节点模块
npm install
并提交新的package-lock.json
文件吗?
No, node updates are backward compatible.不,节点更新是向后兼容的。
In package.json, there's a property called engine
to specify which versions of node.js that package can be used, when upgrading to new node version please check that. In package.json, there's a property called
engine
to specify which versions of node.js that package can be used, when upgrading to new node version please check that.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.