用vue create hello-world创建了一个项目,运行npm run serve报错了,大佬帮忙看下怎么解决

$ npm run serve

> hello-world@0.1.0 serve E:\www\hello-world
> vue-cli-service serve

INFO  Starting development server...
ERROR  Error: listen EAFNOSUPPORT: address family not supported 0.0.0.0:8080
Error: listen EAFNOSUPPORT: address family not supported 0.0.0.0:8080
at Server.setupListenHandle [as _listen2] (net.js:1313:16)
at listenInCluster (net.js:1361:12)
at doListen (net.js:1498:7)
at processTicksAndRejections (internal/process/task_queues.js:85:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hello-world@0.1.0 serve: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hello-world@0.1.0 serve 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:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2021-04-29T02_17_09_804Z-debug.log
======================================================================
错误译文:

正在启动开发服务器。。。

错误:listen EAFNOSUPPORT:不支持地址系列0.0.0.0:8080

错误:listen EAFNOSUPPORT:不支持地址族0.0.0.0:8080

在Server.setupListenHandle[as _listen2](net.js:1313:16)

在listenicluster(net.js:1361:12)

在doListen(net.js:1498:7)

在处理和拒绝时(internal/process/task\u queues.js:85:21)

npm错误!代码失效循环

npm错误!错误1

npm错误!hello-world@0.1.0 serve:`vue cli服务serve`

npm错误!退出状态1

npm错误!

npm错误!失败于hello-world@0.1.0 服务脚本。

npm错误!这可能不是npm的问题。上面可能有额外的日志输出。

npm错误!此运行的完整日志可在以下位置找到:

npm错误!C:\Users\Administrator\AppData\Roaming\npm cache\\u logs\2021-04-29T02\u 17\u 09\u 804Z-debug.log
阅读 1.9k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题