Open alesmenzel opened 2 years ago
Same issue here, with npx ts-node
I am not sure if this is the same issue, but I encountered double process termination prompts. It happens on some node/npm versions, but doesn't on others
I encounter this in different projects, for example let's take boilerplate vite project https://vitejs.dev/guide/
Reproduction:
yarn create vite
or pnpm create vite
to install. This bug is NOT happening when the project is installed through npmnpm run dev
This also is happening on:
This is not happening on:
System is Windows 11. I use nvm for windows as node version manager, not sure if it causes mess with npm versions
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
SIGINT
is called twice, immediately terminating the process, causing any cleanup code that runs on SIGINT unable to run without hacking around and handling npm double fire or running the process outside ofnpm run
Expected Behavior
SIGINT
is called just onceSteps To Reproduce
and run it
and the output
Environment