Error: listen EADDRINUSE: address already in use 3000 | 8080 | 5000 node js solved

preview_player
Показать описание
How to solve Error: listen EADDRINUSE: address already in use in node js is shown
Emitted 'error' event on Server instance at:
code: 'EADDRINUSE',
errno: -4091,
syscall: 'listen',
address: '::',
port:
}
Рекомендации по теме
Комментарии
Автор

The correct solution is sudo killall node and re run node file.js

cristiancamilocalderontapi
Автор

The following worked for me:
Go to task manager and close all nodejs processes, then close the terminal and create a new one, and that's it!!!!

natanaelmunoz
Автор

OK, it works, but it's tiring to have to change it every time I run the program

HabibiWS
Автор

Thank u so much. But I still cant get why is it that when I search for this port it shows my old code. I should be able to update it every time i put node js server.js on the terminal.

arthurmedeiros
Автор

Other solution is: ps -aux | grep 'node index.js', then kill -9 PID

miguelvergara
Автор

every time i save (Ctrl S) it looks good, no error. It says "[nodemon] starting node index.js". Then i save again and this error appears. Then i save again and its everything ok. its like interspersed, I don't get it..

stodani
Автор

sir again occurs same error could please help me

SrinivasaraoDara-uztc
Автор

Bhai mere node js K server start hone K baaad kitna bhi update delete server K bad firse start krne K baaad server par sala hello world hi likha hua aaarha h yrr dimak khraaaab hogaya 1hour se plz koi btado mere server pr hello world K alawa kuch aaa nhi rha chahe M RSS. End me rohan daas likhu ya html dalu helo world jaaa hi nahi rha h yr kahi bhi koi solution nhi mil rha plz koi btado bhai

Kalufuning
Автор

This is not a solution, it is a walk around

martinmendez
Автор

thanks but stop eating while your doing a video

vicomtehector
Автор

Can someone help me please ?
I get an error,
ReferenceError: app is not defined

suyfoo