npm ERR! code EUNSUPPORTEDPROTOCOL when using yarn's "workspace:"
See original GitHub issueI am using yarn workspaces, and in order to depend one package to another in my monorepo I am using yarn’s workspace protocol (https://yarnpkg.com/features/workspaces#publishing-workspaces) However when trying to run multi-semantic-release it errors with the following:
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:packages/dashboard
Reference: https://github.com/taskforcesh/nandu/runs/8274785071?check_suite_focus=true#step:5:91
Issue Analytics
- State:
- Created a year ago
- Comments:7
Top Results From Across the Web
javascript - npm ERR! Unsupported URL Type "workspace:"
I was able to fix this issue by using yarn instead of npm .
Read more >How to run this Babel project? · Discussion #12308 - GitHub
babel git:(main) ✗ npm i npm ERR! code EUNSUPPORTEDPROTOCOL npm ERR! ... We use yarn: you'll need to run the yarn command to...
Read more >Errors installing Frontity in a monorepo with yarn workspaces
Errors installing Frontity in a monorepo with yarn workspaces ... Error: Command failed: npm install npm ERR! code EUNSUPPORTEDPROTOCOL npm ...
Read more >Gcloud Functions Deploy can't find yarn workspace [213632942]
I'm using yarn berry workspaces in a nodejs / typescript project. ... message=Build failed: npm ERR! code EUNSUPPORTEDPROTOCOL npm ERR!
Read more >Builds failing because they started using npm instead of yarn
I am seeing yarn projects suddenly using npm too. ... NPM version 8.19.2 1:39:23 PM: npm ERR! code EUNSUPPORTEDPROTOCOL 1:39:23 PM: npm ERR!...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So last three days I spent trying to make the release to no avail… tried everything I could came up with. In the last iteration I changed to pnpm instead of yarn. Interestingly it works to make a dry releae locally, but not on github actions…
https://github.com/taskforcesh/nandu/actions/runs/3040480203/jobs/4896572401
By using custom semantic-release/npm with a never version of npm I manage to go a step further but then got stuck with another error impossible to understand:
npm ERR! Cannot read properties of null (reading 'matches')\n"https://github.com/taskforcesh/nandu/actions/runs/3040464168/jobs/4896538148
I do not expect to get any help at this point, but certainly if you read this and are considering to use monorepos and semantic-release, you may also spend several days like I did to no avail…
@aarne,
Thanks for the digging. We use yarn for our monorepos, so we have never faced with this kind of npm features. Could you pls update the readme.md troubleshooting section?
UPD I forgot that there is already such a mention. )))