-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed as not planned
Labels
Bugthing that needs fixingthing that needs fixingNeeds Triageneeds review for next stepsneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
npm install does not work if try to install one workspace to another
STR:
mkdir foo && cd ./foonpm init -ynpm init -y -w ./pkg-anpm init -y -w ./pkg-bnpm install ./pkg-a -w pkg-b
AR: npm ERR! Cannot set properties of null (setting 'dev')
ER: Behaviour similar to cd ./pkg-b && npm install ../pkg-a
Expected Behavior
No response
Steps To Reproduce
No response
Environment
- npm: 8.1.0
- Node: v16.13.0
- OS: macOS 12.0.1
- platform: Darwin arm64
60 verbose stack TypeError: Cannot set properties of null (setting 'dev')
60 verbose stack at calcDepFlagsStep (/Users/maksim/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/calc-dep-flags.js:34:21)
60 verbose stack at visit (/Users/maksim/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/calc-dep-flags.js:12:20)
60 verbose stack at visitNode (/Users/maksim/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/treeverse/lib/depth-descent.js:57:25)
60 verbose stack at next (/Users/maksim/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/treeverse/lib/depth-descent.js:44:19)
60 verbose stack at depth (/Users/maksim/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/treeverse/lib/depth-descent.js:82:10)
60 verbose stack at depth (/Users/maksim/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/treeverse/lib/depth.js:27:12)
60 verbose stack at calcDepFlags (/Users/maksim/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/calc-dep-flags.js:10:15)
60 verbose stack at Arborist.[copyIdealToActual] (/Users/maksim/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:1400:7)
60 verbose stack at Arborist.reify (/Users/maksim/.nvm/versions/node/v16.13.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:153:35)
60 verbose stack at async Install.install (/Users/maksim/.nvm/versions/node/v16.13.0/lib/node_modules/npm/lib/install.js:170:5)
61 verbose cwd /private/tmp/foo
thomazmz, josh18, dsuresh-ap, HarrisonFretwell, johngeorgewright and 25 more
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingNeeds Triageneeds review for next stepsneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release