安装 element-ui 时报错的问题解决
参考博客:https://blog.csdn.net/kalimera/article/details/122383499。在网上搜到了一些对我有用的代码。正常使用官网给的代码。
·
found 0 vulnerabilities
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @vue/eslint-config-standard@6.1.0
npm ERR! Found: eslint-plugin-vue@8.7.1
npm ERR! node_modules/eslint-plugin-vue
npm ERR! dev eslint-plugin-vue@"^8.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
npm ERR! node_modules/@vue/eslint-config-standard
npm ERR! dev @vue/eslint-config-standard@"^6.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: eslint-plugin-vue@7.20.0
npm ERR! node_modules/eslint-plugin-vue
npm ERR! peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
npm ERR! node_modules/@vue/eslint-config-standard
npm ERR! dev @vue/eslint-config-standard@"^6.1.0" 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!
npm ERR! For a full report see:
npm ERR! C:\Users\J\AppData\Local\npm-cache\_logs\2023-09-17T11_53_55_103Z-eresolve-report.txt
npm ERR! A complete log of this run can be found in: C:\Users\J\AppData\Local\npm-cache\_logs\2023-09-17T11_53_55_103Z-debug-0.log
正常使用官网给的代码
出现如上的报错代码
在网上搜到了一些对我有用的代码
npm install --legacy-peer-deps element-ui --save
或者使用第二个
npm install element-plus --save
参考博客:https://blog.csdn.net/kalimera/article/details/122383499
更多推荐
已为社区贡献1条内容
所有评论(0)