运行vue官方示例报错
发布于 8 年前 作者 MyNodeJs 8498 次浏览 来自 问答

运行vue官方示例报错 下载下来vue官方示例HackerNews 克隆 执行npm install 再执行npm run dev报错 错误如下 Error: listen EADDRINUSE 127.0.0.1:8080 at Object.exports._errnoException (util.js:870:11) at exports._exceptionWithHostPort (util.js:893:20) at Server._listen2 (net.js:1237:14) at listen (net.js:1273:10) at net.js:1382:9 at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:63:16) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:82:10)

npm ERR! Linux 4.4.0-28-generic npm ERR! argv “/usr/bin/nodejs” “/usr/bin/npm” “run” "dev" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE npm ERR! vue-hackernews@1.0.0 dev: webpack-dev-server --inline --hot --no-info npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vue-hackernews@1.0.0 dev script ‘webpack-dev-server --inline --hot --no-info’. 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-hackernews package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! webpack-dev-server --inline --hot --no-info npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs vue-hackernews npm ERR! Or if that isn’t available, you can get their info via: npm ERR! npm owner ls vue-hackernews npm ERR! There is likely additional logging output above.

麻烦看看什么原因?

2 回复

8080端口被使用了,换一个端口吧

回到顶部