[BUG] Error installing relative paths using workspaces
Problem
EDIT See https://github.com/npm/cli/issues/3847#issuecomment-1219533329 for minimum reproduction case. --@wraithgar ------- Is there an existing issue for this? - [X] I have searched the existing issues Current Behavior Running `npm install --workspace=<workspace>` is resulting in npm exiting with an errorcode and the following stack trace: [code block] Dockerfile for container I'm running the command in: [code block] node_modules seem to successfully install but npm exits with an error code Expected Behavior npm install completes without raising an error Steps To Reproduce 1. Setup an npm project with workspaces 2. Create a docker container according to the above specifications, with one of the commands attempting to run npm install for a specific workspace 2. Attempt to build the container 4. npm installs node_modules successfully but exits with error Environment - OS: Debian GNU/Linux 9 (stretch) - Node: 14.16.1 - npm: 7.24.2
Error Output
Error: Cannot set property 'dev' of null
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: [BUG] Error installing relative paths using workspaces
Hitting this same issue using workspaces with npm@8.1.2 and npm@8.3.2 [code block]
Trust Score
6 verifications
- 1
Hitting this same issue using workspaces with npm@8.1.2 and npm@8.3.2
Hitting this same issue using workspaces with npm@8.1.2 and npm@8.3.2
Validation
Resolved in npm/cli GitHub issue #3847. Community reactions: 16 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep