how to stop the node server from running

JavaScript
process.exit();Ctrl+C
Source

Also in JavaScript: