The package-lock.json is a new file introduces in npm v 5.*. The goal of introducing this new file is to resolve issue due to installing different versions of packages.
In the previous post we saw about the semantic Versioning for npm and the various wild cards associated with this versioning. We saw that the package.json by default uses the carot (^) wildcard for package versioning, this allows for auto upgrade of the minor and patch versions.
Let us say we have the following entry in our package.json file for react
"react": "^16.8.3"
In the previous post we saw about the semantic Versioning for npm and the various wild cards associated with this versioning. We saw that the package.json by default uses the carot (^) wildcard for package versioning, this allows for auto upgrade of the minor and patch versions.
Let us say we have the following entry in our package.json file for react
"react": "^16.8.3"