$ npm run dev --port 8088
vue-project@1.0.0 dev E:MySoftwaretestGitwebpackvue-project
node build/dev-server.js "8088"
events.js:160
throw er; // Unhandled 'error' event
^
Error: listen EACCES 0.0.0.0:8080
at Object.exports._errnoException (util.js:1026:11)
at exports._exceptionWithHostPort (util.js:1049:20)
at Server._listen2 (net.js:1244:19)
at listen (net.js:1293:10)
at Server.listen (net.js:1389:5)
at EventEmitter.listen (E:\MySoftware\testGit\webpack\vue-project\node_modules\express\lib\application.js:617:24)
at Object.<anonymous> (E:\MySoftware\testGit\webpack\vue-project\build\dev-server.js:62:22)
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:3
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "E:\Program Files\nodejs\node.exe" "E:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "dev" "--port" "8088"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! vue-project@1.0.0 dev: node build/dev-server.js "8088"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-project@1.0.0 dev script 'node build/dev-server.js "8088"'.
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-project package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node build/dev-server.js "8088"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs vue-project
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls vue-project
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! E:MySoftwaretestGitwebpackvue-projectnpm-debug.log
npm install 终于不报错了
npm dev run 又报错了。。难道今天不适合码代码。。。
8080 这个端口已经被占用了,你看看是不是,你已经起过这个应用了。
你可以换个端口
8000
或者8100
一类的