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;…


This content originally appeared on DEV Community and was authored by Anurag Roy

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.


This content originally appeared on DEV Community and was authored by Anurag Roy


Print Share Comment Cite Upload Translate Updates
APA

Anurag Roy | Sciencx (2022-06-05T17:32:26+00:00) Error: listen EADDRINUSE: address already in use XXXX. Retrieved from https://www.scien.cx/2022/06/05/error-listen-eaddrinuse-address-already-in-use-xxxx/

MLA
" » Error: listen EADDRINUSE: address already in use XXXX." Anurag Roy | Sciencx - Sunday June 5, 2022, https://www.scien.cx/2022/06/05/error-listen-eaddrinuse-address-already-in-use-xxxx/
HARVARD
Anurag Roy | Sciencx Sunday June 5, 2022 » Error: listen EADDRINUSE: address already in use XXXX., viewed ,<https://www.scien.cx/2022/06/05/error-listen-eaddrinuse-address-already-in-use-xxxx/>
VANCOUVER
Anurag Roy | Sciencx - » Error: listen EADDRINUSE: address already in use XXXX. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/06/05/error-listen-eaddrinuse-address-already-in-use-xxxx/
CHICAGO
" » Error: listen EADDRINUSE: address already in use XXXX." Anurag Roy | Sciencx - Accessed . https://www.scien.cx/2022/06/05/error-listen-eaddrinuse-address-already-in-use-xxxx/
IEEE
" » Error: listen EADDRINUSE: address already in use XXXX." Anurag Roy | Sciencx [Online]. Available: https://www.scien.cx/2022/06/05/error-listen-eaddrinuse-address-already-in-use-xxxx/. [Accessed: ]
rf:citation
» Error: listen EADDRINUSE: address already in use XXXX | Anurag Roy | Sciencx | https://www.scien.cx/2022/06/05/error-listen-eaddrinuse-address-already-in-use-xxxx/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.