-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] npm update --dev
triggers npm WARN old lockfile
each time
#3899
Comments
npm upgrade --dev
triggers npm WARN old lockfile
each timenpm update --dev
triggers npm WARN old lockfile
each time
Sorry about the edits, I guess |
Fix: npm/cli#3899 A shrinkwrap reset without specifying a lockfile version was triggering an old lockfile warning due to the originalLockfileVersion not being set prior to checking whether the lockfile was old.
Fix: npm/cli#3899 A shrinkwrap reset without specifying a lockfile version was triggering an old lockfile warning due to the originalLockfileVersion not being set prior to checking whether the lockfile was old.
Fix: npm/cli#3899 A shrinkwrap reset without specifying a lockfile version was triggering an old lockfile warning due to the originalLockfileVersion not being set prior to checking whether the lockfile was old.
Same here, no "--dev" used: I commented under this closed slightly different issue (it was the most applicable one I had found until I saw this one here just now): #3721 (comment) (with lots of info and log section) Searched a lot of issues here and on StackOverflow with "WARN old lockfile" in them. None look relevant, most are "npm install" (where I have no warning) and conditions that I don't have. I checked several closed issues and what they weer redirected to and none seemed relevant either. I think I really have to (re)post under this OPEN issue, none of the closed once apply. |
FWIW I also get this in our project even without |
@lll000111 Thanks for the additional report! It looks like your issue from your linked comment is the same as this one. I do have a fix for this in a PR currently (npm/arborist#339) and it should go out with our weekly release on Thursday. And the PR includes a test @ehoogeveen-medweb 😄 |
Is there an existing issue for this?
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
npm init -y
npm update --dev
(this creates a package-lock.json)npm update --dev
again (this triggers the warning)npm WARN old lockfile
Environment
The text was updated successfully, but these errors were encountered: