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:\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

 

別問我為啥,我也是找的,但是我親身試了是可以解決的.希望可以幫到你

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM