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