博客
关于我
vue运行报错:events.js:160
阅读量:382 次
发布时间:2019-03-05

本文共 2070 字,大约阅读时间需要 6 分钟。

刚安装好vue项目运行环境,出现以下问题:

events.js:160      throw er; // Unhandled 'error' event      ^Error: listen EADDRINUSE :::8080    at Object.exports._errnoException (util.js:1022:11)    at exports._exceptionWithHostPort (util.js:1045:20)    at Server._listen2 (net.js:1259:14)    at listen (net.js:1295:10)    at Server.listen (net.js:1391:5)    at EventEmitter.listen (F:\代码\博客改版\学习\Vue\vue-demo\node_modules\express\lib\application.js:618:24)    at Object.
(F:\代码\博客改版\学习\Vue\vue-demo\build\dev-server.js:85:18) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.runMain (module.js:604:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:149:9) at bootstrap_node.js:509:3npm ERR! Windows_NT 6.1.7601npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"npm ERR! node v6.10.0npm ERR! npm v3.10.10npm ERR! code ELIFECYCLEnpm ERR! vue-demo@1.0.0 dev: `node build/dev-server.js`npm ERR! Exit status 1npm ERR! npm ERR! Failed at the vue-demo@1.0.0 dev script 'node build/dev-server.js'.npm ERR! Make sure you have the latest version of node.js and npm installed.npm ERR! If you do, this is most likely a problem with the vue-demo package,npm ERR! not with npm itself.npm ERR! Tell the author that this fails on your system:npm ERR! node build/dev-server.jsnpm ERR! You can get information on how to open an issue for this project with:npm ERR! npm bugs vue-demonpm ERR! Or if that isn't available, you can get their info via:npm ERR! npm owner ls vue-demonpm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request:npm ERR! F:\代码\博客改版\学习\Vue\vue-demo\npm-debug.logProcess finished with exit code 1

解决方案:

1.关掉使用8080端口的进程
2.修改此项目打开的端口

如果文章能够对您有所帮助,我便感到十分荣幸。如若文章能被您点赞,那便是万分荣幸。

个人微信:iotzzh

公众号:前端微说
个人网站:www.iotzzh.com

转载地址:http://ctnwz.baihongyu.com/

你可能感兴趣的文章
MYSQL:基础——触发器
查看>>
Mysql:连接报错“closing inbound before receiving peer‘s close_notify”
查看>>
mysqlbinlog报错unknown variable ‘default-character-set=utf8mb4‘
查看>>
mysqldump 参数--lock-tables浅析
查看>>
mysqldump 导出中文乱码
查看>>
mysqldump 导出数据库中每张表的前n条
查看>>
mysqldump: Got error: 1044: Access denied for user ‘xx’@’xx’ to database ‘xx’ when using LOCK TABLES
查看>>
Mysqldump参数大全(参数来源于mysql5.5.19源码)
查看>>
mysqldump备份时忽略某些表
查看>>
mysqldump实现数据备份及灾难恢复
查看>>
mysqldump数据库备份无法进行操作只能查询 --single-transaction
查看>>
mysqldump的一些用法
查看>>
mysqli
查看>>
MySQLIntegrityConstraintViolationException异常处理
查看>>
mysqlreport分析工具详解
查看>>
MySQLSyntaxErrorException: Unknown error 1146和SQLSyntaxErrorException: Unknown error 1146
查看>>
Mysql_Postgresql中_geometry数据操作_st_astext_GeomFromEWKT函数_在java中转换geometry的16进制数据---PostgreSQL工作笔记007
查看>>
mysql_real_connect 参数注意
查看>>
mysql_secure_installation初始化数据库报Access denied
查看>>
MySQL_西安11月销售昨日未上架的产品_20161212
查看>>