Should We Commit Package-Lock.json
Should We Commit Package-Lock.json . This file is intended to be committed. In fact, the package.json file only tracks direct dependencies. 关于node npm install报错无法生成packge.json文件的踩坑解决方法 灰信网(软件开发博客聚合) from www.freesion.com It describes the exact tree that was generated, such that subsequent installs are able to generate identical trees, regardless of intermediate dependency updates. That’s why you need to track both. This is a file usually found in packages.