vue cli npm run dev时候报错
如下$ npm run dev> vuedemo2@1.0.0 dev C:\Users\Damin\Desktop\vuedemo2> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js'webpack-dev-server' ▒▒▒▒▒ڲ▒▒▒▒ⲿ▒▒▒Ҳ▒▒▒ǿ▒▒▒
如下
$ npm run dev
> vuedemo2@1.0.0 dev C:\Users\Damin\Desktop\vuedemo2
> webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
'webpack-dev-server' ▒▒▒▒▒ڲ▒▒▒▒ⲿ▒▒▒Ҳ▒▒▒ǿ▒▒▒▒еij▒▒▒
▒▒▒▒▒▒▒▒▒ļ▒▒▒
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vuedemo2@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 vuedemo2@1.0.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Damin\AppData\Roaming\npm-cache\_logs\2018-06-14T09_00_40_786Z-debug.log
修改如下
1:删除node_modules
2:执行cnpm cache clean
3:cnpm install
4:npm run dev
然后就可以了
更多推荐
所有评论(0)