Node.js Port 3000 already in use but it actually isn't?

前端 未结 30 2222
闹比i
闹比i 2020-11-28 17:24

I have been working with a node.js project for a few weeks and it has been working great. Usually, I use npm start to run my app and view it in a browser on loc

30条回答
  •  时光说笑
    2020-11-28 18:07

    check for any process running on the same port by entering the command:

    sudo ps -ef
    

    You can find the process running on the respective node port, then kill the node by

    kill -9 
    

    If the problem still remains then just kill all the node

    killall node
    

提交回复
热议问题