how to get control off port already in use code example
Example 1: port already in use windows 10
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
Example 2: cancel ng server port
Using your terminal, find the PID of port 4200
netstat -ano | findstr :4200
Kill task by the PID Number (Replace 15940)
taskkill /PID 15940 /F