vue跑项目异常处理
npm WARN node_modules/echarts-liquidfill npm WARN echarts-liquidfill@"2.0.6" from the root project npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: vue-element-admin@4.4.0 npm ERR! Found: ts-loader@9.2.6 npm ERR! node_modules/ts-loader npm ERR! dev ts-loader@"9.2.3" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! dev ts-loader@"9.2.3" from the root project npm ERR! npm ERR! Conflicting peer dependency: webpack@5.74.0 npm ERR! node_modules/webpack npm ERR! peer webpack@"^5.0.0" from ts-loader@9.2.3 npm ERR! node_modules/ts-loader npm ERR! dev ts-loader@"9.2.3" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See C:\Users\Admin\AppData\Local\npm-cache\eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Admin\AppData\Local\npm-cache\_logs\2022-08-25T08_05_11_919Z-debug-0.log
解决方案:执行 npm install --legacy-peer-deps