node server kill code example Example 1: node js stop process.exit(); Example 2: stop npm server npm run react-scripts start