从git上clone的vue项目npm install后npm run server报错

$ npm run dev

> lufei@1.0.0 dev E:\pythonProject\luffy\luffyvue
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js 10% building modules 0/1 modules 1 active ... webpack/hot/dev-server ./src/main 10% building modules 1/2
modules 1 active ...ode_modules\webpack\hot\dev-server 10% building modules 2/3 modules 1 active
...honProject\luffy\luffyvue\src\main 12% building modules 24/44 modules 20 active ...\element-ui\lib\theme-chalk\index.cssevents.js:174
throw er; // Unhandled 'error' event
^ Error: listen EADDRNOTAVAIL: address not available 12.20.22.14:8080
at Server.setupListenHandle [as _listen2] (net.js:1260:19)
at listenInCluster (net.js:1325:12)
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1458:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:62:10)
Emitted 'error' event at:
at emitErrorNT (net.js:1304:8)
at process._tickCallback (internal/process/next_tick.js:63:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! lufei@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the lufei@1.0.0 dev 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\14612\AppData\Roaming\npm-cache\_logs\2019-06-16T14_53_41_465Z-debug.log

最后发现是config/index.js中的host地址问题,把host地址改成本地地址即可

最新文章

  1. Ubuntu下freeradius-server的安装
  2. [ACM_模拟] ZJUT 1155 爱乐大街的门牌号 (规律 长为n的含k个逆序数的最小字典序)
  3. 慢牛股票-基于Sencha+Cordova的股票类APP
  4. 食物链(codevs 1074)
  5. C# 导出数据至 CSV
  6. Ha ha lou!
  7. easyui返回数据类型
  8. 结构体buf_page_t
  9. Selenium执行测试脚本稳定性的一些经验分享交流
  10. A Bit Fun
  11. jenkins用户权限配置错误,导致登录时提示:没有Overall/read权限
  12. SpringMVC4+MyBatis+SQL Server2014+druid 监控SQL运行情况
  13. 基于Mysql 5.7 GTID 搭建双主Keepalived 高可用
  14. 中国历史人物传记数据库 CBDB 若干表简介
  15. OkHttp3源码详解(一) Request类
  16. linux每日命令(3):ln命令
  17. centos-6.5安装部署LNMP环境
  18. Trim Galore用法及参数考量
  19. mtrace检查内存泄漏
  20. C++11标准的智能指针、野指针、内存泄露的理解(日后还会补充,先浅谈自己的理解)

热门文章

  1. FTPClient登录慢的问题
  2. linux常用命令-4查看文件内容命令
  3. 使用自己的Python函数处理Protobuf中的字符串编码
  4. 深度探索C++对象模型读书笔记-第六章执行期语意学
  5. jQuery实现enter键登录
  6. wpf 解决 WPF SelectionChanged事件向上传递造成重复执行不想执行的函数的问题
  7. Zabbix-server及zabbix-web安装手册(centos7)
  8. Redis Desktop Manager可视化工具连接不上redis
  9. 引入CSS样式表(书写位置)
  10. MetalLB自建私有Kubernetes的LoadBalancer负载均衡类型服务