Is there any way to fix package-lock.json lockfileVersion so npm uses a specific format?
问题 If two different developers are using different versions of node (12/15) & npm (6/7) in a project that was originally created using a package-lock.json "lockfileVersion": 1 , when the developer using npm 7x installs new packages it seems that the package-lock.json is re-created using "lockfileVersion": 2 . This seems to cause issues for the developer using npm v6, as it tries to work with the lockfileVersion 2 , but it ends up producing new diffs. npm WARN read-shrinkwrap This version of npm