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

`Cannot find module .../bin/pnpm.cjs` after upgrading from Corepack <=0.34.4 with pnpm 12 cached

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

@abappi19 がすでに取り組んでいます。

2026年10月6日 から。

  • #902 @abappi19 による — オープン

評価

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

調査の方向性

Start with sources/corepackUtils.ts at the linked lines and inspect how cached package-manager records and their bins are checked. Run the linked reproduction: install pnpm 12.2.1 with Corepack 0.34.0, then invoke it with 0.36.0. Done means Corepack detects the missing recorded bin and reinstalls pnpm instead of failing with Cannot find module.

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

説明

Repro: https://github.com/abappi19/corepack-stale-cache-repro

$ npx [email protected] install          # package.json pins [email protected]
$ npx [email protected] pnpm --version
Error: Cannot find module '<COREPACK_HOME>/v1/pnpm/12.2.1/bin/pnpm.cjs'
  • Corepack <=0.34.4 caches pnpm 12 with bin: ./bin/pnpm.cjs, a file pnpm 12 doesn't ship, and later releases reuse that record as is (corepackUtils.ts).
  • Temporary workaround: corepack cache clean.

Expected: Corepack reinstalls the version when its recorded bins are missing.

AI disclosure: I used a coding agent to help investigate and build the repro, and verified the cause against the source myself.

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

環境構築

はじめの一歩

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

nodejs/corepack のほかの issue

nodejs/corepack の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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