terminate all npm code example Example 1: node js kill port taskkill /f /im node.exe Example 2: how to kill all node processes cmd "/C TASKKILL /IM node.exe /F"