Skip to content

Ctrl+C breaks the terminal on Windows for commands delegated through package managers #1489

@sunfkny

Description

@sunfkny

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

Metadata

Metadata

Assignees

Labels

Type

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions