You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally I filed this bug under setup node: actions/setup-node#1206 (comment)
But it was pointed out that the message was a yarn specific error message.
In summary:
The project was migrated to yarn berry (in my case [email protected])
I have a Github action setup that tries to build the project when core pack is not yet enabled.
The following error is presented when the Github action tries to run the setup node.
Run actions/setup-node@v4
Found in cache @ /opt/hostedtoolcache/node/20.18.1/x64
Environment details
/usr/local/bin/yarn --version
1.22.22
/usr/local/bin/yarn cache dir
error This project's package.json defines "packageManager": "[email protected]". However the current global version of Yarn is 1.22.22.
Presence of the "packageManager" field indicates that the project is meant to be used with Corepack, a tool included by default with all official Node.js distributions starting from [16](https://github.com/AlbatrosEng/a9-cwi-client/actions/runs/12948571237/job/36117499630?pr=172#step:3:18).9 and 14.19.
Corepack must currently be enabled by running corepack enable in your terminal. For more information, check out https://yarnpkg.com/corepack.
Error: error This project's package.json defines "packageManager": "[email protected]". However the current global version of Yarn is 1.22.22.
Presence of the "packageManager" field indicates that the project is meant to be used with Corepack, a tool included by default with all official Node.js distributions starting from 16.9 and 14.[19](https://github.com/AlbatrosEng/a9-cwi-client/actions/runs/12948571237/job/36117499630?pr=172#step:3:21).
Corepack must currently be enabled by running corepack enable in your terminal. For more information, check out https://yarnpkg.com/corepack.
I noticed that the link provided in the error is not found, because it includes a full stop.
The link should be https://yarnpkg.com/corepack and not https://yarnpkg.com/corepack.
To reproduce
Repro steps:
I used the migration docs here to upgrade from yarn 1 to the new version.
But I think it can be re-produced with the following:
Originally I filed this bug under setup node: actions/setup-node#1206 (comment)
But it was pointed out that the message was a yarn specific error message.
In summary:
The project was migrated to yarn berry (in my case [email protected])
I have a Github action setup that tries to build the project when core pack is not yet enabled.
The following error is presented when the Github action tries to run the setup node.
I noticed that the link provided in the error is not found, because it includes a full stop.
The link should be
https://yarnpkg.com/corepack
and nothttps://yarnpkg.com/corepack.
To reproduce
Repro steps:
I used the migration docs here to upgrade from yarn 1 to the new version.
But I think it can be re-produced with the following:
corepack enable
yarn set version berry
The action I use as an example:
The text was updated successfully, but these errors were encountered: