port 3000 is already in use code example
Example 1: address already in use :::3000
lsof -i:3000
kill -9 [PID]
Example 2: port 8080 already in use
netstat -ano | findstr 8080
Example 3: npm port already in use
$ lsof -i tcp:3000
$ kill -9 PID
Example 4: Port 3000 is already in use, but when I try to kill nothing is found
netstat -ano | findstr :3000
taskkill /PID "123" /F
Example 5: stop npm running on port 3000
netstat -ano | findstr :3000
taskkill /F /PID PID_of_port
Example 6: port 4200 is already in use.
taskkill -f /pid 18932