Closed
Copy link
Labels
Description
Describe the bug
This is related to #1176, but the fix does not apply to commands executed via the package manager
Reproduction
https://github.com/sunfkny/vite-project
Steps to reproduce
Run vp dlx serve, vp update, vp add vue, vp remove vue or any other command that is delegated through the package manager
Press Ctrl+C once to stop the process.
The terminal may enter a broken state (same symptoms as #1176).
System Info
PS C:\Code\vite-project> vp env current
VITE+ - The Unified Toolchain for the Web
Environment:
Version 24.15.0
Source lts
Tool Paths:
node C:\Users\root\.vite-plus\js_runtime\node\24.15.0\node.exe
npm C:\Users\root\.vite-plus\js_runtime\node\24.15.0\npm.cmd
npx C:\Users\root\.vite-plus\js_runtime\node\24.15.0\npx.cmd
PS C:\Code\vite-project> vp --version
VITE+ - The Unified Toolchain for the Web
vp v0.1.19
Local vite-plus:
vite-plus v0.1.19
Tools:
vite v8.0.8
rolldown v1.0.0-rc.16
vitest v4.1.4
oxfmt v0.45.0
oxlint v1.60.0
oxlint-tsgolint v0.21.1
tsdown v0.21.9
Environment:
Package manager pnpm v10.32.1
Node.js v24.15.0
PS C:\Code\vite-project>Used Package Manager
pnpm
Logs
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue for the same bug.
- Confirm this is a Vite+ issue and not an upstream issue (Vite, Vitest, tsdown, Rolldown, or Oxc).
- The provided reproduction is a minimal reproducible example.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
None yet
Effort
None yet
Target date
None yet
Start date
None yet
Activity
fengmk2 commentedon Apr 27, 2026
It seems a refactoring is needed to replace all cmd script calls with ps1 scripts where possible.
fix(command): route Windows .cmd shims through PowerShell for pm comm…
refactor: extract shared primitives into vite_powershell crate (#368)
fix(command): route Windows .cmd shims through PowerShell for pm comm…
fengmk2 commentedon May 6, 2026
@sunfkny Can you help test the alpha version? Check if this issue has been fixed.
sunfkny commentedon May 6, 2026
@fengmk2 Fixed, no issues now.
fix(command): route Windows .cmd shims through PowerShell for pm comm…
fix(command): route Windows .cmd shims through PowerShell for pm comm…
fix(command): route Windows .cmd shims through PowerShell for pm comm…
fix(command): route Windows .cmd shims through PowerShell for pm comm…
fix(command): route Windows .cmd shims through PowerShell for pm comm…
fix(command): route Windows .cmd shims through PowerShell for pm comm…
fix(command): route Windows .cmd shims through PowerShell for pm comm…
fix(command): route Windows .cmd shims through PowerShell for pm comm…
fix(cli): route Windows .cmd shims through PowerShell for pm commands (…
chore(deps): bump vite-task to pick up the Windows ps1 stdin gate