You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] On v11.6.1 npm i or npm update generates different lock file contents on second run #8725
$ npm config ls
; node bin location = /usr/local/bin/node; node version = v22.21.1; npm local prefix = /Users/[REDACTED]/issues/9295-2; npm version = 11.6.1; cwd = /Users/[REDACTED]/issues/9295-2; HOME = /Users/[REDACTED]; Run `npm config ls -l` to show all defaults.
This issue is similar to #8726 , as the second run of npm i modifies the package.lock file. If your instance is unique, please provide more details so we can check.
This removed dep is flagged "optional": true, "peer": true so probably another case of incorrect pruning introduced in #8431. This should be fixed by #8645 released with npm v11.6.3.
Hey y'all, sorry I wasn't able to respond to this sooner. I tried the same steps using npm v11.6.3 and it seems to be fixed! Thanks @liamcmitchell! I'll go ahead and close this.
Activity
DaSchTour commentedon Nov 18, 2025
Maybe related to #8669
v-mragunandhan24 commentedon Nov 20, 2025
This issue is similar to #8726 , as the second run of
npm imodifies the package.lock file. If your instance is unique, please provide more details so we can check.liamcmitchell commentedon Nov 26, 2025
This removed dep is flagged
"optional": true, "peer": trueso probably another case of incorrect pruning introduced in #8431. This should be fixed by #8645 released with npm v11.6.3.aalej commentedon Nov 26, 2025
Hey y'all, sorry I wasn't able to respond to this sooner. I tried the same steps using npm v11.6.3 and it seems to be fixed! Thanks @liamcmitchell! I'll go ahead and close this.