[BUG] npm shrinkwrap renames out of date package-lock #3951
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
Current Behavior
with disabled package-locks in npm config
npm shrinkwrap
command produces different result based on presense of package-lock.json fileif it is present it just renames it, but actual node_modules could be different at that moment
if it is not present it would calculate up to date npm-shrinkwrap.json
Expected Behavior
npm shrinkwrap should give the same output with or without package-lock.json
shrinkwraps from case (a) and case (b) in Steps To Reproduce should be the same
I expect them to be, should they though ?
Steps To Reproduce
case (a)
package-lock = false
in npm configcase (b)
Environment
The text was updated successfully, but these errors were encountered: