kill port number in node js code example Example 1: kill port npm npx kill-port 3000 Example 2: node js kill port taskkill /f /im node.exe