启动时报错如下
D:\QQFile\\FileRecv\industry_vue>cnpm run dev > vue_demo@1.0. dev D:\QQFile\\FileRecv\industry_vue
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js % building modules / modules activeevents.js:
throw er; // Unhandled 'error' event
^ Error: listen EADDRNOTAVAIL 10.0.0.6:
at Object.exports._errnoException (util.js::)
at exports._exceptionWithHostPort (util.js::)
at Server._listen2 (net.js::)
at listen (net.js::)
at net.js::
at _combinedTickCallback (internal/process/next_tick.js::)
at process._tickCallback (internal/process/next_tick.js::)
at Module.runMain (module.js::)
at run (bootstrap_node.js::)
at startup (bootstrap_node.js::)
at bootstrap_node.js:: npm ERR! Windows_NT 10.0.
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. dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status
npm ERR!
npm ERR! Failed at the vue_demo@1.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\\FileRecv\industry_vue\npm-debug.log
可能是webpack版本不同导致
项目是拷过来的,可能webpack版本不一样所致,从我电脑可以运行的项目拷config文件夹替换启动成功