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


(Sam Yamashita) #1

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:


(system) #2

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.