Answers for "if (!list.length) { console.log('port 3000 is free now'); } else { process.kill(list[0].pid, 'SIGHUP'); }"

3

Port 3000 is already in use, but when I try to kill nothing is found

netstat -ano | findstr :3000
taskkill /PID "123" /F
Posted by: Guest on May-24-2020
1

stop npm running on port 3000

netstat -ano | findstr :3000
taskkill /F /PID PID_of_port
Posted by: Guest on July-14-2020

Browse Popular Code Answers by Language