getting an error- listen EADDRINUSE :::3000 on windows machine getting an error- listen EADDRINUSE :::3000 on windows machine express express

getting an error- listen EADDRINUSE :::3000 on windows machine


Open the command prompt and type the following

netstat -a -o -n

run down the list by port until you find port 3000 and you will see the process id. Then run

taskkill /F /PID (yourprocessID)

there's another simple way to do this in a single command

FOR /F "tokens=4 delims= " %%P IN ('netstat -a -n -o ^| findstr :3000') DO TaskKill.exe /PID %%P

if you use windows 7 U might need tokens=5, use with caution tokens are different for different OS.


  • In windows 10, open task manager and go to Details tab.
  • There you will find node.exe running.
  • End that task and your port will be released.


If you're using VS Code in Windows, You would need to first KILL all the previous instances of your Node-App

Afterwards, Open the BASH terminal in VS Code and run below command

cmd "/C TASKKILL /IM node.exe /F"