npm run dev报错解决方法

报错内容如下

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:UserszhouchenAppDataRoaming pm-cache\_logs2020-06-07T13_04_25_367Z-debug.log

解决方法

rm -rf node_modules

rm package-lock.json

npm cache clear --force

npm install

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

原文地址:https://www.cnblogs.com/zhouchen0408/p/13062270.html