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

Switch automatically

オープン
#782 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
nodejs, typescript

調査の方向性

まず、Corepack における現在のプロジェクトメタデータの処理とバージョン選択を読み、次に devEngines がどのように表現されているか、また cd 時の切り替えが Corepack の範囲に含まれるかを調査してください。求められている動作は、npm i の前に Node と npm を自動選択することです。初回セットアップ後にリポジトリごとの手順を必要としない、文書化されたサポート対象のワークフローがあれば完了とします。

索引モデルが issue の本文から書いたものです。

説明

Is there any way to make it so when I clone down a brand new repo that uses devEngines and cd into it, I'm automatically on the correct Node/npm version, via corepack. Example:

{
  "name": "my-project",
  "devEngines": {
    "runtime": {
      "name": "node",
      "version": ">= 24.0.0"
    },
    "packageManager": {
      "name": "npm",
      "version": "11.7.0"
    }
  }
}

I'm fine with a one time series of steps to install corepack and enable it or whatever, but I don't want to have to do any steps at all after that. I should be able to just git clone https://github.com/org/my-project.git && cd my-project && npm i && npm start and know that if that project uses a different version of Node or npm from what I have it will download it automatically and switch to it before doing the npm i.

This is fully possible with Volta (not with devEngines object, but a similar volta object in the package.json). But Volta is no longer maintained. Can Corepack be used as a replacement today, or would it be possible for it to add support for these features? Thanks.

主要言語
TypeScript
スター
3.8k
フォーク
279
平均マージ
1時間 47分
マージ済み PR(30日)
2

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

nodejs/corepack のほかの issue

nodejs/corepack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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