[BUG] npm install a specific package version in workspaces do not work as expected #6533
Open
2 tasks done
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I have two workspaces
workspace_a
andworkspace_b
using the same packagedependency_a
with different versions.Changing the version of
dependency_a
inworkspace_a
usingnpm i dependency_a@version -w workspace_a
have no effect and the version is not changedExpected Behavior
Running
npm i dependency_a@version -w workspace_a
should change the version ofdependency_a
inworkspace_a
to the request version.Steps To Reproduce
The last command to install react with version 17 to workspace
a
have no effect, and workspacea
still use react 18 at this point. The output of the last command is:Environment
The text was updated successfully, but these errors were encountered: