首页 > 技术文章 > npm run dev报错解决方法

zhouchen0408 2020-06-07 21:16 原文

报错内容如下

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! meiduo_mall@1.0.0 dev: `webpack-dev-server --inline --progress --config build/webpack.dev.conf.js`
npm ERR!
npm ERR! Failed at the meiduo_mall@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\zhouchen\AppData\Roaming\npm-cache\_logs\2020-06-07T13_04_25_367Z-debug.log

 

解决方法

 

rm -rf node_modules

rm package-lock.json

npm cache clear --force

npm install

 

别问我为啥,我也是找的,但是我亲身试了是可以解决的.希望可以帮到你

 

推荐阅读