1//To find the process id (PID) associated with the port
2lsof -i tcp:3000
3COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
4node 44475 chen5 31u IPv4 0x8b1721168764e4bf 0t0 TCP *:strexec-s (LISTEN)
5//Then to kill the process
6kill -9 44475
1//Run this command to get the PID of the running
2ps aux | grep node
3//Then kill/stop it by
4kill -9 PID
5
1C:\Windows\System32>taskkill /F /IM node.exe
2SUCCESS: The process "node.exe" with PID 11008 has been terminated.
3