sst / console

A web based dashboard for your SST apps
https://console.sst.dev
212 stars 21 forks source link

Autodeploy fails when using yarn berry #17

Closed eredzik closed 6 days ago

eredzik commented 2 weeks ago

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
Successfully added SST ❍ ion to $PATH in /root/.bashrc
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.

jayair commented 1 week ago

Hmm we'll take a look.

fwang commented 6 days ago

Just release a Console update. And it will now respect packageManager in ur package.json.

Feel free to re-open if error persists.