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] npm 9 does not handle workspace versioning done outside of npm version #5967
; "user" config from /Users/rmarkins/.npmrc
//registry.npmjs.org/:_authToken = (protected)
; "cli" config from command line optionslocation = "project"; node bin location = /Users/rmarkins/Library/Application Support/fnm/node-versions/v18.12.1/installation/bin/node; node version = v18.12.1; npm local prefix = /Users/rmarkins/Projects/personal/lerna-lockfile-v3-bug-repro; npm version = 9.2.0; cwd = /Users/rmarkins/Projects/personal/lerna-lockfile-v3-bug-repro; HOME = /Users/rmarkins; Run `npm config ls -l` to show all defaults.
changed the title [-][BUG] npm 9 blows up during lerna version command[/-][+][BUG] npm 9 does not handle workspace versioning done outside of `npm version`[/+]on Dec 14, 2022
This is no longer reproducible by default in npm@9.4.2 due to reverting install-links back to false (ref: #6142).
But it is still a bug and I was able to write a failing test (ref: #6150) to isolate this behavior.
The gist is that npm install --package-only-only fails when dependent workspaces have had their ranges bumped in their parent package.json but not the package-lock.json. But only when --install-links=true.
Keeping this open since we will still want to track and fix this behavior even though install-links=true is no longer the default.
Reacted by Rick Markins, Pavel Horal, Oskar Hane and Kylir
Activity
[-][BUG] <title>[/-][+][BUG] npm 9 blows up during lerna version[/+][-][BUG] npm 9 blows up during lerna version[/-][+][BUG] npm 9 blows up during lerna version command[/+][-][BUG] npm 9 blows up during lerna version command[/-][+][BUG] npm 9 does not handle workspace versioning done outside of `npm version`[/+]chore: failing test for install links and package lock only
lukekarrys commentedon Feb 8, 2023
This is no longer reproducible by default in
npm@9.4.2due to revertinginstall-linksback tofalse(ref: #6142).But it is still a bug and I was able to write a failing test (ref: #6150) to isolate this behavior.
The gist is that
npm install --package-only-onlyfails when dependent workspaces have had their ranges bumped in their parentpackage.jsonbut not thepackage-lock.json. But only when--install-links=true.Keeping this open since we will still want to track and fix this behavior even though
install-links=trueis no longer the default.chore: failing test for install links and package lock only
chore: failing test for install links and package lock only
chore: failing test for install links and package lock only
chore: failing test for install links and package lock only
chore: failing test for install links and package lock only
chore: failing test for install links and package lock only (#6150)
chore: use Node.js v18.14.2 and npm 9.5.0