npm install ant-design-vue --save?安裝報(bào)錯(cuò),使用的是vue2,如圖,
=3.2.0" from ant-design-vu,bug報(bào)錯(cuò),ui" referrerpolicy="no-referrer" />
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: default@0.1.0
npm ERR! Found: vue@2.7.14
npm ERR! ? vue@"^2.6.10" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vue@">=3.2.0" from ant-design-vue@3.2.15
npm ERR! node_modules/ant-design-vue
npm ERR! ? ant-design-vue@"*" 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\Administrator\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\Administrator\AppData\Local\npm-cache\_logs\2023-02-23T09_41_26_713Z-debug-0.log文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-790526.html
?解決方法:
要求vue版本不得低于2.6.0才可以正常使用ant-design文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-790526.html
到了這里,關(guān)于vue2安裝ant-design UI報(bào)錯(cuò) ERR! peer vue@“>=3.2.0“ from ant-design-vue@3.2.15的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!