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
When a workspace has a (bin) @scope/dependency thats installed in the root-workspace's node_modules; and you execute it with npm exec -w child-workspace @scope/name, the node_modules from root-workspace is ignored and global version is used instead.
Added problem: Since the global node_modules is used, a different version of the package may be used.
Need to install the following packages:
@pega/dx-component-builder-sdk@23.1.14
Ok to proceed? (y)
Environment
npm: 10.5.0
Node.js: 20.12.2
OS Name: MacOS Sonoma 14.3.1
System Model Name: Apple M1 Pro
npm config:
% npm config ls
; node bin location = /Users/wimbarelds/.nvm/versions/node/v20.12.2/bin/node; node version = v20.12.2; npm local prefix = /Users/wimbarelds/projects/npm-test; npm version = 10.5.0; cwd = /Users/wimbarelds/projects/npm-test; HOME = /Users/wimbarelds; Run `npm config ls -l` to show all defaults.
Notes:
I am not completely sure if the scope is relevant
I do not have this issue with eslint
I do have this issue with @pega/dx-component-builder-sdk.
I can confirm this issue does not occur with npm 9.8.1
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When a workspace has a (bin) @scope/dependency thats installed in the root-workspace's node_modules; and you execute it with
npm exec -w child-workspace @scope/name
, the node_modules from root-workspace is ignored and global version is used instead.Added problem: Since the global node_modules is used, a different version of the package may be used.
Expected Behavior
npm exec -w child-workspace @scope/name
usesroot_workspace/node_modules/@scope/name
Steps To Reproduce
Result:
Environment
Notes:
eslint
@pega/dx-component-builder-sdk
.The text was updated successfully, but these errors were encountered: