-
-
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?]: set version issue #6310
Comments
You need to enable Corepack by running |
This comment was marked as off-topic.
This comment was marked as off-topic.
Even if I start out with Yarn
Enabling |
This comment was marked as off-topic.
This comment was marked as off-topic.
As mentioned in the error message, if the package contains a
If the project contains |
Thanks for the workaround It appears that this issue is caused by the CLI command yarn set version classic I would expect this command to remove {
"packageManager": "[email protected]"
} from yarn set version stable Or is it expected that |
This comment was marked as off-topic.
This comment was marked as off-topic.
Yarn Classic does the check before spawning any Yarn command - including |
This, or something that presents the same, started hitting us as well (in addition to the other issue I opened that's referenced earlier in this comment chain).
The odd thing is that we are using corepack. Even if I run An interesting thing to note is that running
Editing with new info: Our issue seems to have been that running |
Self-service
Describe the bug
in case the global yarn version is 1.22.21 i can't switch to yarn 4.2.2 if the package.json already contains "packageManager": "[email protected]"
NOTE: this is used in Ci/CD pipeline, e.g no way to leave the project folder
To reproduce
Environment
System: OS: macOS 14.1 CPU: (12) arm64 Apple M3 Pro Binaries: Node: 22.1.0 - /private/var/folders/5f/0b9zhgpd1g132gtzrlzlt7rh0000gn/T/xfs-5e99bc67/node Yarn: 4.2.2 - /private/var/folders/5f/0b9zhgpd1g132gtzrlzlt7rh0000gn/T/xfs-5e99bc67/yarn npm: 10.7.0 - ~/.nvm/versions/node/v22.1.0/bin/npm
Additional context
also the
yarn dlx -q envinfo --preset jest
is not working in the above caseThe text was updated successfully, but these errors were encountered: