npm error: code ELIFECYCLE errno 1 listen EADDRINUSE 0.0.0.0:8088

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014386892/article/details/80347879

Error:

events.js:165
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE 0.0.0.0:8088
    at Server.setupListenHandle [as _listen2] (net.js:1345:14)
    at listenInCluster (net.js:1386:12)
    at doListen (net.js:1501:7)
    at process._tickCallback (internal/process/next_tick.js:114:19)
    at Function.Module.runMain (module.js:692:11)
    at startup (bootstrap_node.js:194:16)
    at bootstrap_node.js:666:3
Emitted 'error' event at:
    at emitErrorNT (net.js:1365:8)
    at process._tickCallback (internal/process/next_tick.js:114:19)
    [... lines matching original stack trace ...]
    at bootstrap_node.js:666:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! neocu-frontend@3.0.0 devser: `webpack-dev-server -d --hot --env.dev --env.config=local`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the neocu-frontend@3.0.0 devser script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

同样的错误犯了多次,太不张记性了,记住这个单词!
EADDRINUSE: 给定的地址已经被使用
端口被占用

解决:

sudo lsof -i :8088 // 查看端口使用情况
sudo kill -9 47862 // 杀死展示的PID
阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页