npm run build 报错 vue[mini-css-extract-plugin]Conflicting order between

博客指出不同页面引用两个或多个公共组件时,因引入顺序不同而产生警告,涉及前端开发中组件引用的问题。

不同页面都引用了两个或多个公共组件,但引入顺序不一样,导致的警告

npm install --save-dev mini-css-extract-plugin@latest提示F:\008717hz\houtai>npm install --save-dev mini-css-extract-plugin@latest npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: @vue/cli-plugin-eslint@4.5.15 npm error Found: eslint@8.4.1 npm error node_modules/eslint npm error peer eslint@"^7.5.0 || ^8.0.0" from @babel/eslint-parser@7.16.5 npm error node_modules/@babel/eslint-parser npm error dev @babel/eslint-parser@"7.16.5" from the root project npm error peer eslint@"^6.2.0 || ^7.0.0 || ^8.0.0" from eslint-plugin-vue@8.2.0 npm error node_modules/eslint-plugin-vue npm error dev eslint-plugin-vue@"8.2.0" from the root project npm error 3 more (eslint-utils, vue-eslint-parser, the root project) npm error npm error Could not resolve dependency: npm error peer eslint@">= 1.6.0 < 7.0.0" from @vue/cli-plugin-eslint@4.5.15 npm error node_modules/@vue/cli-plugin-eslint npm error dev @vue/cli-plugin-eslint@"4.5.15" from the root project npm error npm error Conflicting peer dependency: eslint@6.8.0 npm error node_modules/eslint npm error peer eslint@">= 1.6.0 < 7.0.0" from @vue/cli-plugin-eslint@4.5.15 npm error node_modules/@vue/cli-plugin-eslint npm error dev @vue/cli-plugin-eslint@"4.5.15" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see: npm error C:\Users\www87\AppData\Local\npm-cache\_logs\2025-03-26T07_33_43_535Z-eresolve-report.txt npm error A complete log of this run can be found in: C:\Users\www87\AppData\Local\npm-cache\_logs\2025-03-26T07_33_43_535Z-debug-0.log
03-27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值