npm ERR! Windows_NT 10.0.14393
npm ERR! argv "D:\\nodejs\\node.exe" "d:\\nodejs\\node_global\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
npm ERR! node v7.4.0
npm ERR! npm v4.1.1
npm ERR! code ELIFECYCLE
npm ERR! vue-loader-demo@1.0.0 dev: `webpack-dev-server --inline --hot --port 8082`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-loader-demo@1.0.0 dev script 'webpack-dev-server --inline --hot --port 8082'.
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-loader-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 --hot --port 8082
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs vue-loader-demo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls vue-loader-demo
npm ERR! There is likely additional logging output above.
出现错误的原因有好几种,我的方法是安装全局依赖cnpm install就可以了
网友评论