how to exit after npm command runs successfully code example Example: how to stop a node server from running ps aux | grep node kill -9 PROCESS_ID