question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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

  1. npm uninstall -g yarn
  2. npm install -g yarn@berry
  3. yarn set version 2.0.0

Screenshots

Screen Shot 2020-02-06 at 12 22 57 PM

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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
arcaniscommented, Mar 17, 2020

Hm can you try 2 (rather than 2.0.0)?

0reactions
memarkcommented, Mar 18, 2020

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).

Read more comments on GitHub >

github_iconTop 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 >

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