Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Chiusa
#2,690 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, rust

Direzione di ricerca

Inizia dal percorso di pianificazione delle attività e risoluzione degli eseguibili di vp run, quindi riproduci il caso su Windows 11 usando pnpm 12.4.1 e lo script documentato dev:serve. Confronta la risoluzione di astro tramite node_modules/.bin/astro.cmd con pnpm 11; il lavoro è completato quando vp run trova l'eseguibile e avvia entrambi i server di sviluppo con pnpm 12.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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).
Lingua principale
Rust
Stelle
5.8k
Fork
263
Merge medio
1g 3h
PR unite (30g)
147

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di voidzero-dev/vite-plus

Tutte le issue di voidzero-dev/vite-plus

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.