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

vp run fails to resolve node_modules/.bin executables with pnpm 12 on Windows (cannot find binary path)

クローズ
#2,690 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
node.js, rust

調査の方向性

まず vp run のタスク計画および実行可能ファイル解決のパスを確認し、次に pnpm 12.4.1 とドキュメントに記載された dev:serve スクリプトを使って Windows 11 のケースを再現します。node_modules/.bin/astro.cmd を介した astro の解決を pnpm 11 と比較します。vp run が実行可能ファイルを見つけ、pnpm 12 で両方の開発サーバーを起動できれば完了です。

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

説明

pending triage

vp run fails to resolve .bin executables with pnpm 12 on Windows (Failed to find executable astro)

Environment

  • vite-plus: latest (reproduced on 0.1.24 and current latest)
  • pnpm: 12.4.1 (reproduces), pnpm 11 (works)
  • OS: Windows 11 Pro 10.0.26200
  • Node: 24.20.0 (via mise)
  • shell: PowerShell 7 / Git Bash

Summary

With the project installed by pnpm 12.4.1, vp run fails during task planning on
Windows even though the node_modules/.bin shims are well-formed and work fine
when invoked by pnpm itself.

Steps to reproduce

  1. Windows 11, pnpm 12.4.1 (packageManager: pnpm@12.4.1, pnpm via mise, shamefullyHoist: true)
  2. pnpm install
  3. Root script:
    "dev:all": "pnpm --filter @sdata/web-vue run build:module && pnpm --filter @sdata/web-vue run jsongen && pnpm --filter @sd-design/sd-vue-docs run docs:vendor:only && vp run --parallel --filter @sdata/web-vue --filter @sd-design/sd-vue-docs dev:serve"
    
  4. vp run dev:all (docs package dev:serve script is astro dev --host --force)

Actual result

error: Failed to plan tasks from `vp run --parallel --filter @sdata/web-vue --filter @sd-design/sd-vue-docs dev:serve` in task sd-design-vue-monorepo#dev:all
* Failed to find executable astro under cwd D:\work\sd-design\packages/sd-vue-docs with PATH: D:\work\sd-design\packages/sd-vue-docs\node_modules\.bin;D:\work\sd-design\node_modules\.bin;...
* cannot find binary path

The printed PATH starts with packages/sd-vue-docs/node_modules/.bin, which contains
the standard pnpm shims astro, astro.cmd, astro.ps1; astro.cmd's target
(node_modules/astro/bin/astro.mjs) exists.

Expected result

vp run resolves astro via astro.cmd (PATHEXT) like pnpm does, and starts the dev servers.

Key observation (pnpm 11 vs 12)

  • With pnpm 12.4.1 installed node_modules: vp run fails as above.
  • Rolling back to pnpm 11 and reinstalling: vp run works.
  • pnpm --filter @sd-design/sd-vue-docs run dev:serve works under both pnpm 11 and 12,
    so pnpm 12's shims are functional; only vp's own executable resolution fails.
  • Also reproduced with latest vite-plus after upgrading from 0.1.24 — not fixed upstream yet.
  • Suspicious detail (may or may not be relevant): after the pnpm-11 reinstall, .bin
    contains duplicate-case entries (astro.cmd + astro.CMD, same for vite/rolldown/vue-tsc).
主要言語
Rust
スター
5.8k
フォーク
263
平均マージ
1日 3時間
マージ済み PR(30日)
147

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

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

はじめの一歩

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

voidzero-dev/vite-plus のほかの issue

voidzero-dev/vite-plus の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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