npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Why does “npm install” rewrite package-lock.json?

Summary

$ npm -v
6.3.0

$ node -v
v8.11.3

I run npm install and package-lock.json file is modified. npm modified version format like below:

       "requires": {
-        "entities": "1.1.1"
+        "entities": "^1.1.1"
        }

Steps to reproduce

git clone git@github.com:appium/appium-desktop.git
npm i

What is the expected correct behavior?

I expect it will not be modified.




Thanks in advance :bow: