Unsupported Yarn v1 Classic used as default after Corepack installation
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 64/100
調査の方向性
まずリンク先の行にある config.json を確認し、Corepack をインストールした後、新しい一時ディレクトリで yarn create vite を使って動作を再現します。デフォルトのダウンロードプロンプトで、corepack install -g yarn を必要とせずに [email protected] ではなく [email protected] が提案されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Current behavior
If a yarn create command is run following installation of Corepack, then the unsupported Yarn v1 Classic 1.22.22 is offered for download.
Expected behavior
The current version of Yarn should be proposed as default for download after installing Corepack. Currently that would mean selecting [email protected] instead of [email protected].
Yarn Classic v1.x is no longer supported and is marked as frozen since January 2020.
Yarn Modern v4 is the currently supported version of Yarn (see https://github.com/yarnpkg/berry/releases for current release information).
It should not be necessary to have executed
corepack install -g yarn
before executing yarn create.
The default Yarn version for the global install is [email protected]. 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.
Versions
Corepack 0.34.7
Ubuntu 24.04.4 LTS
Node.js 25.9.0 (Current)
Steps to reproduce
Install Node.js 25.9.0 LTS
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]
Workaround
corepack install -g yarn
- 主要言語
- TypeScript
- スター
- 3.8k
- フォーク
- 281
- 平均マージ
- 3時間 21分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nodejs/corepack のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
nodejs/corepack の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
📕documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
db-ux-design-system/core-web#8343 ·
メンテナーはふだん 1 日以内に返信
-
enhancement triage/needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
heygen-com/hyperframes#4944 ·
メンテナーはふだん 1 日以内に返信
-
ai-driven-qa bug claude
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
linagora/twake-calendar-frontend#1493 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
material-extensions/vscode-material-icon-theme#3610 ·
メンテナーはふだん 2 日以内に返信