更新时间:2022-04-23 16:53:53
是的。你应该提交它。
此文件旨在提交到源存储库
This file is intended to be committed into source repositories
您可以阅读更多关于它是什么/它是什么这里:
You can read more about what it is/what it does here:
package-lock.json自动为任何npm修改node_modules树或包的操作生成以.json。它描述了生成的确切树,以便随后的安装能够生成相同的树,而不管中间依赖更新。
package-lock.json is automatically generated for any operations where npm modifies either the node_modules tree, or package.json. It describes the exact tree that was generated, such that subsequent installs are able to generate identical trees, regardless of intermediate dependency updates.