PS D:桌面电脑codevue2day06demo-3> npm i axios -S 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! E:Program
Filesnodejsnode_cache_logs2023-05-12T05_37_45_879Z-eresolve–report.txtnpm ERR! A complete log of this run can be found in: npm ERR!
E:Program
Filesnodejsnode_cache_logs2023-05-12T05_37_45_879Z-debug-0.log
--legacy-peer-deps**
npm i axios -S --legacy-peer-deps
解决方案:在完整的指令后面添加–legacy-peer-deps
原文地址:https://blog.csdn.net/weixin_52504437/article/details/130640563
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_28994.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!