Site icon NgDeveloper

[Solved] Error: listen EADDRINUSE: address already in use :::5000

Error: listen EADDRINUSE: address already in use :::5000 

First run this command to check the process ID of the running application:

ps aux | grep node
kill -9 PID

sometimes, even if you kill by the above command the process may still be running.

In that case we need to actually find the process tree and kill the parent / root process.

Command to find the parent/root process:

pstree -hp | grep node

Now kill the process tree by same command:

sudo kill -9 PID
Exit mobile version