-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Bugthing that needs fixingthing that needs fixingPriority 1high priority issuehigh priority issueRelease 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
Since 8.5.0, running npm adduser from a workspace fails with ENOWORKSPACES.
Expected Behavior
Running npm adduser from a workspace should be as-if it was run from the top-level directory.
Steps To Reproduce
- Scaffold npm workspace project:
mdkir testproject
cd testproject
npm init -y
npm init -y -w ./packages/a
- cd into the workspace:
cd packages/a - Run
npm adduser - See error:
npm ERR! code ENOWORKSPACES
npm ERR! This command does not support workspaces.
Environment
- npm: npm 8.5.0
- Node.js: 16.14.0
- OS Name: Windows 10
- System Model Name: N.A.
- npm config: N.A.
t1m0thyj and zFernand0
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingPriority 1high priority issuehigh priority issueRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release