[BUG] npm update --dev
triggers npm WARN old lockfile
each time #3899
Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Looks like this bug is back (though maybe the cause is different). Every time I run npm update --dev
it says that my package-lock.json file was created with an old version of npm and it's doing a one-time fix-up.
npm 8.0.0 did not have this problem.
Expected Behavior
Either no fix-up (it happens even in an empty repo), or only one time.
Steps To Reproduce
- From an empty directory
- Run
npm init -y
- Run
npm update --dev
(this creates a package-lock.json) - Run
npm update --dev
again (this triggers the warning) - Note the
npm WARN old lockfile
Environment
- OS: Windows 10 20H2 x64
- Node: 14.18.1
- npm: 8.1.0