-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm process won't exit when the terminal window is closed #15708
Comments
Experiencing the same issue, I ended up creating a script to kill all the node processes as a temp workaround as sometimes I have dozens of orphaned node.exe running, might not be the best workaround but beats manually trying to kill each process one at a time:
|
Thanks for filing! We're going to mark this as a /dup of #15373. The repro steps are fantastic though, so I'll be sure to copy that over :) |
/dup #15373 |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Windows Terminal version
1.17.11461.0
Windows build number
10.0.22621.1992
Other Software
npm v9.6.7
node v18.15.0
Steps to reproduce
npx degit https://github.com/jsoldi/windows-terminal-bug
. It's just a plain server that does nothing.npm install
npm start 3000
and then visitlocalhost:3000
on a browser.localhost:3000
and the server should still be runningIf the process actually stops, try repeating steps 3-5 one more time.
Expected Behavior
The process should stop.
Actual Behavior
The process doesn't stop, and I don't know of any way to stop it other than restarting the machine or relogging the user. I've also tried closing the wt from the task manager but that doesn't seem to help.
Notes
I've noticed that the process will actually stop either if I run the script directly with
node index.js
, or if I donpm start
from CMD or PS, so somehow the combination of terminal and npm seems to cause the issue.The text was updated successfully, but these errors were encountered: