Is there an existing issue for this?
Current Behavior
$ npm shrinkwrap --lockfile-version=2 produces a v3 lockfile.
v8.1.1 used to print a warning, but #3949 changed that.
v8.1.2 just produces a v3 lockfile without any warnings.
Expected Behavior
lockfile-version param/config should be respected.
Steps To Reproduce
$ rm -rf npm-shrinkwrap.json (if the shrinkwrap exists - it seems to work OK)
$ npm shrinkwrap --lockfile-version=2
$ cat npm-shrinkwrap.json | jq .lockfileVersion
Actual: 3
Expected: 2
Environment
- OS: macOS 11.6
- Node: 14.18.1
- npm: 8.1.2