xxxxxxxxxx
### For Linux/Mac OS search (sudo) run this in the terminal:
$ lsof -i tcp:3000
$ kill -9 PID
### On Windows:
netstat -ano | findstr :3000
tskill typeyourPIDhere
### change tskill for taskkill in git bash
xxxxxxxxxx
# Find the process ID associated with port 3000
sudo lsof -i :3000
# The above command will give an output similar to:
# COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
# node 12345 your_username xxu IPv4 xxxxx 0t0 TCP *:3000 (LISTEN)
# Kill the process using the process ID obtained from the previous command
sudo kill 12345