Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

error listen EADDRINUSE: address already in use :::8081.

First, you would want to know which process is using port 8081

sudo lsof -i :8081

this will list all PID listening on this port, once you have the PID you can terminate it with the following:

kill -9 {PID}     (in my case it was the 5182)
 
PREVIOUS NEXT
Tagged: #error #listen #address
ADD COMMENT
Topic
Name
7+7 =