I\'m following the guidance here (listening for SIGINT events) to gracefully shutdown my Windows-8-hosted node.js application in response to Ctrl+
I'm not sure as of when, but on node 8.x and on Windows 10 the original question code simply works now.
process.on( "SIGINT", function() {
console.log( "\ngracefully shutting down from SIGINT (Crtl-C)" );
process.exit();
} );
process.on( "exit", function() {
console.log( "never see this log message" );
} );
setInterval( () => console.log( "tick" ), 2500 );
also works with a windows command prompt.