Tuesday, May 21, 2019

What is the difference between package.json and package-lock.json

package-lock.json: records the exact version of each installed package which allows you to re-install them. Future installs will be able to build an identical dependency tree.
package.json: records the minimum version you app needs. If you update the versions of a particular package, the change is not going to be reflected here.

No comments:

Post a Comment