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?


$ npm -v

$ node -v

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
npm i

What is the expected correct behavior?

I expect it will not be modified.

Thanks in advance :bow: