`Cannot find module .../bin/pnpm.cjs` after upgrading from Corepack <=0.34.4 with pnpm 12 cached
評価
- 難易度
- 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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nodejs/corepack のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
[BUG] corepack not use COREPACK_NPM_REGISTRY install of tarball対応中かも @Yash121l が 27 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
Support signature verification against a custom COREPACK_NPM_REGISTRY対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
-
Error when upgrading pnpm to latest in `devEngines.packageManager`対応中かも @thiagobarbosa が 76 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
nodejs/corepack の issue をすべて見る
似ている issue
-
nextjs-tracking
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
cloudflare/vinext#3887 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
apache/rocketmq-dashboard#6331 ·
メンテナーはふだん 5 日以内に返信
-
bug cache clinical-safety P1-critical
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
juspay/blend-design-system#1788 ·
メンテナーはふだん 1 日以内に返信
-
[Analytics] Add Focus Time-Block Efficiency Ratio Calculator in src/lib/focus/efficiency-ratio.tsオープンanalytics beginner friendly community contributions-welcome enhancement good first issue hacktoberfest help wanted up-for-grabs
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信