Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Unsupported Yarn v1 Classic used as default after Corepack installation

オープン 初心者向け
#812 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
64/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
node.js
領域
cli, tooling

調査の方向性

まずリンク先の行にある 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.

https://github.com/nodejs/corepack/blob/fbe7f788a1d9d9ae2c60a39b80f00af1ccf9a7c0/config.json#L115-L116

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nodejs/corepack のほかの issue

nodejs/corepack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。