[Solved] – npm run dev Error: listen EADDRINUSE: address already in use :::8000(or 8080 etc.)

today, I’d like to record that when I was implementing a project recently, I found that running NPM run dev always reported errors:
error: listen eaddinuse: address already in use::: 8000
NPM err! [email protected] dev: cross-env NODE_ Env = online node build/dev server. JS
it is found that the port is actually occupied. We can turn off the occupied port or recompile another port to solve this problem.

1.Error reported:

2. Causes and solutions of error reporting

this error occurs because the port is occupied. We can view the port through netstat - ano :

at this time, we can solve it by closing the occupied port or recompiling the code with another port.


Read More: