npm ERR! This command does not support workspaces.

See original GitHub issue

Testing out publishing a release package and running into this error.

� package-all » package:js | jsii-pacmak -v --target js
       [jsii-pacmak] [INFO] Found 1 modules to package
       [jsii-pacmak] [INFO] Packaging NPM bundles
       [jsii-pacmak] [INFO] Loading jsii assemblies and translations
       [jsii-pacmak] [INFO] Packaging 'js' for test_project
       [jsii-pacmak] [INFO] js finished
       [jsii-pacmak] [INFO] Packaged. load jsii (0.7s) | npm pack (0.4s) | js (0.0s) | cleanup (???)
      
� releaser » unbump | /home/ec2-user/.nvm/versions/node/v16.14.2/bin/node /home/ec2-user/environment/test_project/node_modules/projen/lib/release/reset-version.task.js

� releaser | npm set //npm.pkg.github.com/:_authToken $PACKAGER_TOKEN && npm publish
       npm ERR! code ENOWORKSPACES
       npm ERR! This command does not support workspaces.
npm -v
8.15.0

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mrgraincommented, Dec 1, 2022

No that’s not a projen thing at the moment. So likely an issue for nx-monorepo

Saying that, I think npm publish needs to be called with --workspaces or --workspace abc to do something. Or maybe it’s just not yet supported.

0reactions
pchaganticommented, Dec 1, 2022

Opened an issue in the nx-monorepo for tracking this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] npm owner does not support workspaces #4600 - GitHub
Current Behavior. running npm owner commands from within a workspace in a project logs the following error. npm ERR! code ENOWORKSPACES npm ERR!...
Read more >
Npm workspaces - call workspace script from root package
I'm using NPM Workspaces and it's working well, but it's still missing a lot of features so you need to wire things up...
Read more >
Workspaces - npm Docs
Workspaces is a generic term that refers to the set of features in the npm cli that provides support to managing multiple packages...
Read more >
Getting "no workspace found" error and build is failing - Support
whenever i am initiating the build, it fails with and i see a “no workspace error found issue”, i have attached the log...
Read more >
Advanced package manager features for npm, Yarn, and pnpm
Exploring workspaces, CI/CD install strategies, and alternative ... When using the default configuration, pnpm and Yarn Berry do not use the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found