vp run fails to resolve node_modules/.bin executables with pnpm 12 on Windows (cannot find binary path)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- node.js, rust
- Lĩnh vực
- operating-systems, tooling
Hướng nghiên cứu
Bắt đầu với luồng lập kế hoạch tác vụ và phân giải tệp thực thi của vp run, sau đó tái hiện trường hợp trên Windows 11 bằng pnpm 12.4.1 và script dev:serve được ghi chép. So sánh việc phân giải astro thông qua node_modules/.bin/astro.cmd với pnpm 11; được xem là hoàn tất khi vp run tìm thấy tệp thực thi và khởi động cả hai máy chủ phát triển trên pnpm 12.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Windows 11, pnpm 12.4.1 (
packageManager: pnpm@12.4.1, pnpm via mise,shamefullyHoist: true) pnpm install- 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" vp run dev:all(docs packagedev:servescript isastro 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 runfails as above. - Rolling back to pnpm 11 and reinstalling:
vp runworks. pnpm --filter @sd-design/sd-vue-docs run dev:serveworks 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).
- Ngôn ngữ chính
- Rust
- Star
- 5.8k
- Fork
- 263
- Merge trung bình
- 1 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 147
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của voidzero-dev/vite-plus
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
voidzero-dev/vite-plus#2804 · 1 reaction ·
-
pending triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
voidzero-dev/vite-plus#2801 · 1 reaction ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
voidzero-dev/vite-plus#2097 · 10 bình luận · 2 reaction ·
-
documentation
voidzero-dev/vite-plus#2800 · 1 người được giao ·
-
pending triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
voidzero-dev/vite-plus#2796 · 1 bình luận ·
Tất cả issue của voidzero-dev/vite-plus
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
TheLarkInn/aipm#2413 ·
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
alexgorbatchev/simple-ptt#15 ·
-
tooling
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
todo:ticket
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
taikoxyz/taiko-mono#22168 · 1 bình luận ·