nuxt npm run dev 报错Solution to the "Error: listen EADDRINUSE 127.0.0.1:8080"

时间:2023-03-09 19:31:30
nuxt npm run dev 报错Solution to the "Error: listen EADDRINUSE 127.0.0.1:8080"

Solution to the "Error: listen EADDRINUSE 127.0.0.1:8080"

Hello,

Just sharing a solution to the errors below, when you run "npm start" and a port is already in use:

Error: listen EADDRINUSE 127.0.0.1:8080" (or EADDRINUSE 127.0.0.1:3000)

1) Type "netstat -aon" on Command Prompt

2) Find the relative PID number to 127.0.0.1:8080 (or 3000)

3) Run "taskkill /f /pid pidnumber"

4) Run "npm start" again