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

Install yarn 2 #807

Closed
SBoudrias opened this issue Sep 3, 2020 · 1 comment
Closed

Install yarn 2 #807

SBoudrias opened this issue Sep 3, 2020 · 1 comment

Comments

@SBoudrias
Copy link

It looks like yarn 2 releases are done in a different way. Is there anyway to use it with Volta?

$ yarn --version
Volta error: Could not download yarn@2.2.0
from https://github.com/yarnpkg/yarn/releases/download/v2.2.0/yarn-v2.2.0.tar.gz

Please verify your internet connection and ensure the correct version is specified.
Error details written to /Users/SBoudrias/.volta/log/volta-error-2020-09-02_17_48_35.543.log
$ volta install yarn@2.2.0
error: Could not download yarn@2.2.0
from https://github.com/yarnpkg/yarn/releases/download/v2.2.0/yarn-v2.2.0.tar.gz

Please verify your internet connection and ensure the correct version is specified
@charlespierce
Copy link
Contributor

Hi @SBoudrias, thanks for asking! We actually just updated Volta to fetch Yarn from registry.npmjs.org instead of the GitHub releases in the most recent release, Version 0.8.7. So that should solve that particular problem.

However, there is still an outstanding issue that may make Volta misbehave with Yarn 2.0: We currently don't support Yarn Plug'n'Play behavior, which is enabled by default in Yarn 2.0. So what you may see is that global binaries that are trying to delegate to the local version will fail, because we are looking for them in node_modules/.bin, which doesn't exist under Yarn 2.0 / PnP.

See #651 and #158 for more info on our previous investigations into Yarn 2.0 and PnP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants