listen EADDRINUSE: address already in use :::4000 typescript code example
Example 1: EADDRINUSE: address already in use
sudo lsof -i :<PORT>
kill -9 <PID>
Example 2: Error: listen EADDRINUSE: address already in use :::3000
C:\Windows\System32>taskkill /F /IM node.exe
SUCCESS: The process "node.exe" with PID 11008 has been terminated.