When running autodeploy on repo configured to use yarn berry (package has key packageManager set to yarn@4.2.2 i receive
12:53:36.146
[0;32mSuccessfully added [38;2;255;140;0mSST ❍ ion [0;32mto $PATH in /root/.bashrc[0m
12:53:36.146
Running: yarn install
12:53:36.715
error This project's package.json defines "packageManager": "yarn@4.2.2". However the current global version of Yarn is 1.22.22.
12:53:36.715
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.
12:53:36.715
Corepack must currently be enabled by running corepack enable in your terminal. For more information, check out https://yarnpkg.com/corepack.
12:53:36.715
Error: Failed to run: yarn install
12:53:36.715
at shell (file:///tmp/buildspec/index.mjs:229:13)
12:53:36.715
at install (file:///tmp/buildspec/index.mjs:169:37)
12:53:36.715
at workflow (file:///tmp/buildspec/index.mjs:159:9)
12:53:36.715
at runWorkflow (file:///tmp/buildspec/index.mjs:163:11)
12:53:36.715
at handler (file:///tmp/buildspec/index.mjs:44:11)
12:53:36.715
at async file:///tmp/buildspec/[eval1]:1:122
Expected behavior:
Console should run corepack enable so that corepack can resolve package manager version correctly.
When running autodeploy on repo configured to use yarn berry (package has key
packageManager
set toyarn@4.2.2
i receiveExpected behavior: Console should run
corepack enable
so that corepack can resolve package manager version correctly.