find port and stop process running in it code example
Example 1: windows kill port
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
Example 2: how to stop port 8080
taskkill /F /PID <Process Id>
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
taskkill /F /PID <Process Id>