Something is already running on port 3000

后端 未结 7 1500
遥遥无期
遥遥无期 2021-01-16 09:29

I have tried to run my project on my localhost but it is saying Something is already running on your port 3000.

相关标签:
7条回答
  • 2021-01-16 10:04

    You can either stop all your tasks running under Nodejs environment to make sure nothing is allocated on PORT 3000, or you can just modify the scripts part of package.json from:

    "start": "react-scripts start"
    

    to

    "start": "PORT=3006 react-scripts start"
    

    then run "npm start" on a new terminal session.

    P.S. The second approach would be a bit of an overkill.

    0 讨论(0)
提交回复
热议问题