Error: listen EADDRINUSE: address already in use XXXX

anurag31oct

Anurag Roy

Posted on June 5, 2022

Error: listen EADDRINUSE: address already in use XXXX

while running the npm script (npm start) you may encounter the command, this basically occurs when we have previously run the file in same port, to avoid this what we have to do is----

go to the server.js file then
update this
Server.HTTP_PORT = WXYZ;
Server.HTTPS_PORT = ABCD;
i.e. change WXYZ to something else and ABCD to something else

then again run npm start
then it will successfully get started in the updated port address.

💖 💪 🙅 🚩
anurag31oct
Anurag Roy

Posted on June 5, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related