vue错误记录
启动时报错如下
D:\QQFile\1499418300\FileRecv\industry_vue>cnpm run dev > vue_demo@1.0.0 dev D:\QQFile\1499418300\FileRecv\industry_vue > webpack-dev-server --inline --progress --config build/webpack.dev.conf.js 10% building modules 1/1 modules 0 activeevents.js:160 throw er; // Unhandled 'error' event ^ Error: listen EADDRNOTAVAIL 10.0.0.6:8080 at Object.exports._errnoException (util.js:1018:11) at exports._exceptionWithHostPort (util.js:1041:20) at Server._listen2 (net.js:1245:19) at listen (net.js:1294:10) at net.js:1404:9 at _combinedTickCallback (internal/process/next_tick.js:83:11) at process._tickCallback (internal/process/next_tick.js:104:9) at Module.runMain (module.js:606:11) at run (bootstrap_node.js:390:7) at startup (bootstrap_node.js:150:9) at bootstrap_node.js:505:3 npm ERR! Windows_NT 10.0.17134 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\user\\AppData\\Roaming\\npm\\node_modules\\cnpm\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig=C:\\Users\\user\\.cnpmrc" "--disturl=https://npm.taobao.org/mirrors/node" "--registry=https://registry.npm.taobao.org" "run" "dev" npm ERR! node v6.10.3 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! vue_demo@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the vue_demo@1.0.0 dev script 'webpack-dev-server --inline --progress --config build/webpack.dev.conf.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! webpack-dev-server --inline --progress --config build/webpack.dev.conf.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs vue_demo npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls vue_demo npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! D:\QQFile\1499418300\FileRecv\industry_vue\npm-debug.log
可能是webpack版本不同导致
项目是拷过来的,可能webpack版本不一样所致,从我电脑可以运行的项目拷config文件夹替换启动成功
参考
Become a Linux Programmer