15 - npm - package.json effect of the package-lock.json

 

One, package.json 

 Npm a file is created when init, will record some basic information about the current entire project .

 

二,package-lock.json

  Package.json is node_modules folder or file is automatically generated when changes occur. The main function of this document is to determine the dependence of the currently installed package ,

So that when the subsequent re-installed to generate the same dependence, while ignoring the project development process to update some dependence has occurred.

Guess you like

Origin www.cnblogs.com/500m/p/10953779.html