[Bug] yarn set version 2.0.0 raises an error
See original GitHub issue- I’d be willing to implement a fix
Describe the bug
I am reinstalling yarn fresh on my local machine, and I followed the steps on the documentation to use yarn 2 and switch between versions. When I run yarn set version 2.0.0
, I receive an “No matching release error”.
➤ YN0001: Error: No matching release found for version 2.0.0.
at /Users/danielle.adams/Code/heroku/node-js-getting-started/.yarn/releases/yarn-rc.js:24:162418
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Function.start (/Users/danielle.adams/Code/heroku/node-js-getting-started/.yarn/releases/yarn-rc.js:24:44856)
at async h.execute (/Users/danielle.adams/Code/heroku/node-js-getting-started/.yarn/releases/yarn-rc.js:24:161928)
at async h.validateAndExecute (/Users/danielle.adams/Code/heroku/node-js-getting-started/.yarn/releases/yarn-rc.js:24:40434)
at async c.run (/Users/danielle.adams/Code/heroku/node-js-getting-started/.yarn/releases/yarn-rc.js:36:533800)
at async c.runExit (/Users/danielle.adams/Code/heroku/node-js-getting-started/.yarn/releases/yarn-rc.js:36:533934)
➤ YN0000: Failed with errors in 0.76s
Documentation: https://yarnpkg.com/getting-started/usage#upgrading-yarn-itself
To Reproduce
npm uninstall -g yarn
npm install -g yarn@berry
yarn set version 2.0.0
Screenshots
Environment if relevant (please complete the following information):
- OS: macOS
- Node 13.8.0
- Yarn 2.0.0-rc.27
Additional context
I’d like to understand how I can detect a yarn version from someone’s source code (ie. engines in a package.json
) and set it for that remote environment (like a build on Heroku). Thanks in advance.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Troubleshooting - Dashy
If you get an error, like Service Unavailable: Server resulted in a fatal error , even when it's definitely online, this is most...
Read more >Dataproc release notes - Google Cloud
Fixed a bug that caused a Dataproc cluster with a Dataproc Metastore service to fail the creation process, if the cluster was in...
Read more >yarn version
Using the yarn version command you can update the version of your package via the command line. For example, starting with this package.json...
Read more >Release Notes — Airflow Documentation
Fix the errors raised when None is passed to template filters (#25593) ... The default value for [celery] worker_concurrency was 16 for Airflow...
Read more >Changelog - Cypress Documentation
Fixed a regression introduced in the Electron browser in Cypress 10.8.0 where the CYPRESS_EVERY_NTH_FRAME environment variable was not being set ...
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 FreeTop 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
Top GitHub Comments
Hm can you try
2
(rather than2.0.0
)?I get that this is probably a temporary condition (while yarn 2 is in RC), but I still think it would make sense to update this page https://yarnpkg.com/getting-started/usage#upgrading-yarn-itself since most people will probably follow it (like I did).