Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: yarn install failed with an old version of yarn #47218

Closed
nb opened this issue Nov 7, 2020 · 1 comment
Closed

Build: yarn install failed with an old version of yarn #47218

nb opened this issue Nov 7, 2020 · 1 comment
Labels

Comments

@nb
Copy link
Member

nb commented Nov 7, 2020

Steps to reproduce

  1. Acquire an old version of yarn, in my case 0.22
  2. Run yarn

What I expected

To update my dependencies.

What happened instead

I got an error Error: https://registry.yarnpkg.com/@automattic%2fbabel-plugin-transform-wpcalypso-async: Not found

After I updated yarn, it worked perfectly.

It wasn't a big deal, though it got me stumbled for a minute there If we can have a way to compare and enforce the yarn version in the engines field that would be awesome (very cursory Google search didn't show much).

@nb nb added the Build label Nov 7, 2020
@scinos
Copy link
Contributor

scinos commented Dec 8, 2020

Since yarn@1.0 (released ~2y ago) it will automatically pick the version declared in .yarnrc, which points to the latest version used in Calypso, 1.22.10

Since yarn@1.15.0 it also checks the engines field, that we specify as yarn: ^1.22.10

@scinos scinos closed this as completed Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants