Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设,我做npm install了然后我改变了节点版本,然后又做npm install了,安装的包会不会package-lock.json改变node_modules?(假设软件包同时没有在 npm 注册表上更新)
npm install
package-lock.json
node_modules
我自己对此很好奇,所以我切换了节点版本,删除yarn.lock并node_modules在我的项目中,然后重新安装。对文件进行了零更新yarn.lock
yarn.lock