-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Bug?]: yarn set version berry
installs the version 4 instead of 3?
#5823
Comments
Slightly different, but related issue:
|
Not directly addressing your report, but you may want to revisit the way you're installing Yarn in the first place. Perhaps use Corepack (as recommended) to get rid of Yarn v1 dependency altogether? |
No changes in the error. |
This command is ran by Yarn 4, hence the error. If your server stil runs Node 16, you upgraded Yarn to version 4 too fast. But, if you really want to dig deeper into this workaround, try setting |
As a stopgap, can you try setting |
yarn set version
@arcanis But still, its not good that you push v4 into the |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Actually I think I understand the confusion now - I got mistaken by @i4rilu's and @wojtekmaj's posts, I now see your initial problem was different from what I thought. Sorry about that. The However, running @Piero87 this seems to be a different issue, please open a new thread (I already misunderstood the problem statement once, I want to be sure we don't get confused again). |
This comment was marked as off-topic.
This comment was marked as off-topic.
yarn set version
yarn set version berry
installs the version 4 instead of 3?
This comment was marked as off-topic.
This comment was marked as off-topic.
I opened a thread to consolidate information around the |
Thanks for the tip, helped me solved an issue while deploying on vercel |
I think
|
Self-service
Describe the bug
When users install our project, we used to do the
yarn set version berry
, which installed the version 3 and now it tries to install the version 4. Our project is still on Node v16 (upgrade to v18 is in progress) and Yarn v4 is failing to install.I tried all the commands from the docs and none of them can install the v3.
For example:
Is there any other way to set the version to 3.x?
thanks
To reproduce
yarn set version https://repo.yarnpkg.com/3.6.4/packages/yarnpkg-cli/bin/yarn.js
Environment
System: OS: macOS 14.0 CPU: (10) arm64 Apple M1 Pro Binaries: Node: 16.20.0 Yarn: 1.22.19 npm: 9.8.1 npmPackages: jest: ^29.5.0 => 29.5.0
Additional context
No response
The text was updated successfully, but these errors were encountered: