nodemon: ctrl+c stops nodemon server but along errno 130 elifecycle error
Hi. However, ctrl+c after node server.js does exit and stops gracefully (no errno 130 elifecycle).
- node 8.9.4
- nodemon 1.18.1.
Any solution?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 10
- Comments: 31 (4 by maintainers)
Commits related to this issue
- fix: revert stdin handling Fixes #1389 Fixes #1390 Ref #1386 Means that ctrl^l does not instantly clear the terminal. It requires a new line directly after. — committed to remy/nodemon by remy 6 years ago
- fix: revert stdin handling Fixes #1389 Fixes #1390 Ref #1386 Means that ctrl^l does not instantly clear the terminal. It requires a new line directly after. — committed to remy/nodemon by remy 6 years ago
Please can you try with the current debug version:
npm install -g nodemon@debug(1.18.2-alpha.1)Having this issue in 1.18.9
1.18.10 😦
Can confirm this issue is still present in 1.18.4
Me too, also in 1.18.3, downgraded back to 1.17.5 and ctrl-c exiting works again without LIFECYCLE 130 errors…
Hi @remy sorry to bother you on this again but on
/node_modules/nodemon/lib/monitor/run.js@465we got:so now my question is : why do we have
process.once('SIGINT', () => bus.emit('quit', 130));? What’s the reason for that because that is the cause of the 130…!utils.isWindowsexplains why it is not happening on windows.If there is no good reason for throwing a
130to aSIGINTlet me know and i’ll PRThanks.
Still having the same issue on 1.19.0 ☹️
Technically ctrl-c isn’t a graceful exit, it’s a SIGINT with an exit code of 130 (it’s just somehow the new way I was going it was confusing npm) - you can validate this by checking ctrl-c on npm and
echo $?On Thu, 12 Jul 2018, 10:26 Graziano Statello, notifications@github.com wrote:
@remy Please reopen!
I have this issue in 1.18.3 too!
Having this issue in 1.18.3
I also meet this problem today. When I use nodemon in CLI, it’s ok. However, I use npm script to run it, it doesn’t work properly.
npm install -g nodemon@debug
This one that Remy made, fixes the problem for me
If you put some logging in, it looks like the
SIGINTactually ends up at your program twice fairly rapidly:Check your node and npm versions and try updating them! There is a good chance, that it will solve the issue for you too.
[nodemon] 1.19.1 I also have this issue. Still not solved!
Hi everyone!
I found a bug ticket on the node github page, which addresses a very similar, if not the same issue:
https://github.com/nodejs/node/issues/21213
I have node
10.4.0which I’ve updated it to10.4.1and seems like it solves the issue. I know, that10.4.xis not the latest LTS, but it worked for me so far. I’ll check the newer minors too to see, if it is working fine there.UPDATE: Checked the latest LTS version (
10.16.0) and it works fine.Note to myself: I occasionally get an
ELIFECYCLE ERROR 143upon pressing Ctrl+C, but it is coming fromwebpack.@sumAlbert definitely possible, btw I’m running
Hope it helps