What is the exact use of package.lock.json file? I have read about it but it's confusing.
Let's say I do
npm installso that it will create apackage.lock.jsonfile, and the next time when I donpm install, will it retain installation of the same packages as it was mentioned in thepackage.lock.jsonfile?Let's say I have a package version defined as
"^1.0.0"in mypackage.jsonfile and a new version becomes available in the npm registry. Will it update the package when I donpm install, or will it keep the same as what was there in thepackage.json?Is there any easy way to update the
package.jsonfile with the exact no of package version without manually updating it one by one? I want to keep maintain the version of the package the same so that next time anybody does npm install, they should get exactly the same package. It's need for a release branch
Actually I need what was the original definition of package.lock.json file but I found inconsistency in its behavior.
I tried using NPM CI but it fails with error node_gyp needs python https://github.com/nodejs/node-gyp/issues/1977