Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EADDRINUSE Port already in use node error

Tags:

node.js

I am getting the following error:

enter image description here

after looking at this solution: https://levelup.gitconnected.com/how-to-kill-server-when-seeing-eaddrinuse-address-already-in-use-16c4c4d7fe5d (kill the process manually) and typing: lsof -i tcp:8080

I get:

enter image description here

which one would be the process to kill?

like image 512
Aessandro Avatar asked Mar 12 '26 12:03

Aessandro


1 Answers

You can do it using the following ways

sudo kill $(lsof -t -i:8000) 

OR

sudo fuser -k -n tcp 8000 

OR

fuser -k 8000/tcp
like image 113
CyberEternal Avatar answered Mar 14 '26 03:03

CyberEternal