Node js +Error: listen EADDRINUSE + Unhandled 'error' event

后端 未结 2 919
天命终不由人
天命终不由人 2021-02-14 03:47

I\'m using nodeclipse plugin for eclipse to run my node js project.Following js file is working properly but h1 tag is not working

2条回答
  •  灰色年华
    2021-02-14 04:29

    Error: listen EADDRINUSE

    This error means that you already have another process listening on port 3000.

    Here is how to find out which process it is on windows

    C:\> netstat -a -b
    (add -n to stop it trying to resolve hostnames, which will make it a lot faster)
    
    Edit: +1 for Dane's recommendation for TCPView. Looks very useful!
    
    -a Displays all connections and listening ports.
    
    -b Displays the executable involved in creating each connection or listening port. In some cases well-known executables host multiple independent components, and in these cases the sequence of components involved in creating the connection or listening port is displayed. In this case the executable name is in [] at the bottom, on top is the component it called, and so forth until TCP/IP was reached. Note that this option can be time-consuming and will fail unless you have sufficient permissions. -n Displays addresses and port numbers in numerical form.
    

提交回复
热议问题