check port already in use windows code example
Example 1: mac error that port is already in use
sudo lsof -t -i tcp:8000 | xargs kill -9
Example 2: port already in use windows 10
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
sudo lsof -t -i tcp:8000 | xargs kill -9
netstat -ano | findstr :3001
taskkill /PID <yourid> /F