DEV Community

Anurag Roy
Anurag Roy

Posted on

2 2

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.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more