FG
💻 Software🛠️ Developer ToolsMicrosoft

[BUG] Error installing relative paths using workspaces

Freshover 3 years ago
Mar 14, 20260 views
Confidence Score81%
81%

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

Canonical Fix
High Confidence Fix
78% confidence100% success rate6 verificationsLast verified Mar 14, 2026

Solution: [BUG] Error installing relative paths using workspaces

Low Risk

Hitting this same issue using workspaces with npm@8.1.2 and npm@8.3.2 [code block]

78

Trust Score

6 verifications

100% success
  1. 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

Worked: 6
Partial: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

npmpackage-managernodejsrelease-8.xbugpriority-1