[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

396 total views, 24 views today

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.