One way is stop single node process in Windows Find all process ids for a given port listening.
netstat -ano | find "LISTENING" | find "4100"
It lists out all process ids for given port 4100
TCP 0.0.0.0:4100 0.0.0.0:0 LISTENING 17846
you can kill the process using the taskkill command
taskkill /pid 17846
use the /f option for killing a single process forcefully.
taskkill /f /pid 17846
The second way, kill all node process in Windows
You need to kill this file using the below command taskkill is a command to kill in process in Windows
taskkill /im node.exe
use /f option to kill it forcefully
taskkill /im /f node.exe
This stops and kill all node process in windows.
Post a Comment
Post a Comment