kill-port when the server on node.js is stopped code example Example: node js kill port taskkill /f /im node.exe