skip to Main Content

It shows this error

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

Things i have tried

kill -9, killall node, adb reconnect etc nothing works it again shows same error when npm start

3

Answers


  1. You can try this in terminal

    adb reverse tcp:8081 tcp:8081
    
    Login or Signup to reply.
  2. You can try

    kill -9 $(lsof -t -i:8081)
    

    It works for me

    Login or Signup to reply.
  3.    Im using Linux Try This !
        find which PID is using ur Port{8081} by following command
        sudo lsof -i :8081
    
        Output something like this:
         COMMAND  PID     USER     FD    TYPE DEVICE SIZE/OFF NODE NAME
                  node    7689   kishan   23u  IPv6  65425      0t0  TCP *:tproxy (LISTEN)
                  
        then fire this command to kill server 
    
        syntax:- kill -9 USER
    
        eg:
        kill -9 7689
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search