The messages are being suppressed because the process is spawned using:
child_process.spawn('coffee.cmd', ['server.coffee'], { stdio: ['pipe', 'pipe', 'pipe']);
In particular the pipe
on stderr
is the issue, because when the child exits, the pipe is full (or appears to be from the first console.error
) so the next message isn't put in the pipe when the child dies.
I've updated nodemon to be smarter about when it uses pipe
, because in most cases, using process.stdout
on stdio
works just fine, and also means this original example script echos out the errors as you'd expect.
The issue you filed has also be closed in nodemon@1.0.17
I should add, the title of this SO question is misleading (it reads as if nodemon hides all console output) - it doesn't hide console output - it was losing console output when the process was crashing. None the less, it's fixed - yay!