node run and end code example Example 1: node js stop process.exit(); Example 2: ran ctrl c and npm server is still running killall node