您的位置:首页技术文章
文章详情页

vue.js - npm run dev报错了,不知道是不是node.js或者npm installed的版本问题

【字号: 日期:2023-09-04 13:32:56浏览:46作者:猪猪

问题描述

vue-hnn@2.0.0 dev /Users/yaomengfei/Desktop/htwebnode build/dev-server.js

events.js:160

throw er; // Unhandled ’error’ event ^

Error: listen EADDRINUSE :::8030

at Object.exports._errnoException (util.js:1022:11)at exports._exceptionWithHostPort (util.js:1045:20)at Server._listen2 (net.js:1262:14)at listen (net.js:1298:10)at Server.listen (net.js:1376:9)at Function.listen (/Users/yaomengfei/Desktop/htweb/node_modules/express/lib/application.js:618:24)at Object.<anonymous> (/Users/yaomengfei/Desktop/htweb/build/dev-server.js:59:22)at Module._compile (module.js:571:32)at Object.Module._extensions..js (module.js:580:10)at Module.load (module.js:488:32)at tryModuleLoad (module.js:447:12)at Function.Module._load (module.js:439:3)at Module.runMain (module.js:605:10)at run (bootstrap_node.js:420:7)at startup (bootstrap_node.js:139:9)at bootstrap_node.js:535:3

npm ERR! Darwin 16.6.0npm ERR! argv '/usr/local/bin/node' '/usr/local/bin/npm' 'run' 'dev'npm ERR! node v7.3.0npm ERR! npm v3.10.10npm ERR! code ELIFECYCLEnpm ERR! vue-hnn@2.0.0 dev: node build/dev-server.jsnpm ERR! Exit status 1npm ERR! npm ERR! Failed at the vue-hnn@2.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-hnn 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-hnnnpm ERR! Or if that isn’t available, you can get their info via:npm ERR! npm owner ls vue-hnnnpm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

问题解答

回答1:

错误原因是你已经使用了8030这个端口了

标签: vue