[BUG] npm invalid config warning duplicates lock file version #6404
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
If you have
lockfile-version=5
by mistake (or anything other than missing, 1, 2 or 3) in the .npmrc, npm warnings/errors show a non-uniq list of error cases - null, 1, 2, 3, 1, 2, 3Expected Behavior
Should uniq, and return just null, 1, 2, 3
Steps To Reproduce
With npm 9.6.5
have a package.json and an .npmrc
in the .npmrc, have this
run npm install
Get the warning
Environment
The text was updated successfully, but these errors were encountered: