vue cli npm run dev时候报错

如下

$ npm run dev


> [email protected] 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! [email protected] dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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

然后就可以了




你可能感兴趣的:(vue cli npm run dev时候报错)