版本兼容问题
来源:8-4 基础样式集成及开发模拟器的使用

阿杰的幸运日常_mnpR37
2025-03-21
在安装npm install normalize.css --save时出现如下错误
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @vue/eslint-config-standard@6.1.0
npm error Found: eslint-plugin-vue@8.7.1
npm error node_modules/eslint-plugin-vue
npm error dev eslint-plugin-vue@"^8.0.3" from the root project
npm error
npm error Could not resolve dependency:
npm error peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
npm error node_modules/@vue/eslint-config-standard
npm error dev @vue/eslint-config-standard@"^6.1.0" from the root project
npm error
npm error Conflicting peer dependency: eslint-plugin-vue@7.20.0
npm error node_modules/eslint-plugin-vue
npm error peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
npm error node_modules/@vue/eslint-config-standard
npm error dev @vue/eslint-config-standard@"^6.1.0" 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\lenovo\AppData\Local\npm-cache\_logs\2025-03-21T13_02_50_570Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\lenovo\AppData\Local\npm-cache\_logs\2025-03-21T13_02_50_570Z-debug-0.log
貌似是版本兼容问题,不知道怎么换成对应的版本,求解答
写回答
1回答
-
阿杰的幸运日常_mnpR37
提问者
2025-03-21
这里我自己按照提示对eslint-plugin-vue的版本进行了降级,请教一下有没有其他更好的方法
012025-04-25
相似问题