error address already in use code example
Example 1: address already in use :::3001
lsof -i tcp:3001
kill -9 {PID}
Example 2: address already in use
# To see ports in use
sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN
lsof -i tcp:3001
kill -9 {PID}
# To see ports in use
sudo lsof -i -P -n | grep LISTEN
sudo netstat -tulpn | grep LISTEN