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
{{ message }}
Repository navigation
Unsupported Yarn v1 Classic used as default after Corepack installation #812
The current version of Yarn should be proposed as default for download after installing Corepack. Currently that would mean selecting yarn@4.14.1 instead of yarn@1.22.22.
Yarn Classic v1.x is no longer supported and is marked as frozen since January 2020.
The default Yarn version for the global install is yarn@4.14.1. It is inconsistent to have the global install for Yarn with no version specification default to Yarn v4, whereas with no global install Corepack is defaulting to Yarn v1.
rm -rf ~/.cache/node/corepack # if repeat testing
npm install -g corepack@latest
cd$(mktemp -d)
yarn create vite # see https://vite.dev/guide
Logs
$ cd $(mktemp -d)
yarn create vite # see https://vite.dev/guide
! Corepack is about to download https://registry.yarnpkg.com/yarn/-/yarn-1.22.22.tgz
? Do you want to continue? [Y/n]
Activity
arcanis commentedon Apr 18, 2026
Yep I agree, time to bump the default to Modern.
MikeMcC399 commentedon May 15, 2026
Is this something I should submit a PR for, or will repo maintainers pick up this suggestion?
As it's a breaking change, I'd actually prefer for maintainers to do it.