Open Tobbe opened 3 days ago
Is maybe yarn
an alias? What does command -v yarn
returns? What about alias yarn
?
@Tobbe ➜ /workspaces/redwood (main) $ command -v yarn
/usr/bin/yarn
@Tobbe ➜ /workspaces/redwood (main) $ alias yarn
bash: alias: yarn: not found
@Tobbe ➜ /workspaces/redwood (main) $ realpath `which yarn`
/usr/local/share/nvm/versions/node/v20.14.0/lib/node_modules/corepack/dist/yarn.js
@Tobbe ➜ /workspaces/redwood (main) $
Issue
Every command (except running just
yarn
) above exited with code0
. But none of them seems to actually do anything.Expected behavior
Ideally
corepack enable
would work, and yarn would switch to version 4.3, but at the very least some kind of error message would be useful when corepack can't actually be enabled.Additional Info
corepack yarn -v
correctly prints out4.3.0
Reproduction
corepack enable
andyarn install
Workaround
Always use
corepack yarn
instead of justyarn