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

前端 未结 30 2224
闹比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条回答
  •  猫巷女王i
    2020-11-28 17:50

    You can search on how to kill that process.

    For Linux/Mac OS search (sudo) run this in the terminal:

    $ lsof -i tcp:3000
    $ kill -9 PID
    

    On Windows:

    netstat -ano | findstr :3000
    tskill typeyourPIDhere 
    

    change tskill for taskkill in git bash

提交回复
热议问题