-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[BUG] SIGINT (ctrl+c) makes npm 7 print error log #2124
Comments
Also getting this behaviour when I try to stop a webpack dev mode. It stops but prints out the same error message. Started happening when I upgraded to npm -v 7.0.7 |
Hm, yeah, we did recently update to send the signal to the child process, whereas before it would just end up sending the default SIGHUP that a child process gets when its parent exits. Maybe what we ought to do is, if we're passing the signal along, then don't treat a signal exit as a failure, but just make sure that the main process dies with the same signal. (Ie, do |
I'm experiencing similar unexpected behavior within our application
Due to this bug, certain operations at the end of our process can't be done, resulting in a downgrade to Node LTS. |
Maybe related to #1591 & #1947
Current Behavior:
If I stop a process started by an npm script (with ctrl+c) , its stops, but npm prints error log.
Expected Behavior:
Normal (silent) exit
Steps To Reproduce:
execute any package script and ctrl+c on it.
example:
Environment:
The text was updated successfully, but these errors were encountered: