vue.js - npm run dev報(bào)錯(cuò)了,不知道是不是node.js或者npm installed的版本問(wèn)題
問(wèn)題描述
[email protected] 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! [email protected] dev: node build/dev-server.jsnpm ERR! Exit status 1npm ERR! npm ERR! Failed at the [email protected] 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:
問(wèn)題解答
回答1:錯(cuò)誤原因是你已經(jīng)使用了8030這個(gè)端口了
