How to Solve NPM Error: listen EADDRINUSE 127.0.0.1:8080

Error:Listening to EADDRINUSE 127.0.0.1:8080 on the server
. setupListenHandle [as _listen2] (net.js:1335:14)
at listenInCluster (net.js: 1381:12)
at GetAddrInfoReqWrapdoListen [as callback] (net.js:1509:7)
at GetAddrInfoReqWrap. onlookup [as oncomplete] (dn .js:61:10)
at :
at emitErrorNT (net.js:1362:8)
at process. _tickCallback (internal/process/next_tick.js:63:19)
npm ERR!
npm !’ cross-env NODE_ENV=development webpack-dev-server -open -inline -hot -port 8080 ‘
npm ERR!exit status 1
npm ERR!
npm error! Failed in development script.
npm ERR! This may not be a problem with npm. There may be additional log output above.
npm Error! The full log of this run can be found in the following file:
C:\Users\MX\AppData\Roaming\npm-cache\_logs\ 2018 – 07 – 24 – t09_07_38_445z debug. Logs
EADDRINUSE:The given address is already in use
Port is occupied
Solution.

sudo lsof -i :8088 // View port usage
sudo kill -9 47862 // kill the displayed PID

 


Read More: