下载axios时出现很多npm ERR错误:npm ERR! code ERESOLVEnpm ERR! ERESOLVE could not resolve

本文介绍了在尝试使用npm安装axios时遇到的ERESOLVE错误,详细解析了错误原因——npm版本过高导致的依赖冲突。解决方法是在安装命令后添加`--legacy-peer-deps`标志。此外,还提醒用户在使用axios时需要导入,并通过举例说明如何解决类似问题,如下载swiper组件。
摘要由CSDN通过智能技术生成

出现的下载错误:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolvenpm ERR!
npm ERR! while resolving: @vue/eslint-config-standard@6.1.0npm 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 projectnpm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint-plugin-vue@"'7.0.o"from @vue/eslint-config-standard@i6.1.0npm ERR! node_modules/@vue/eslint-config-standard
npm ERR!dev @vue/eslint-config-standard@"'6.1.0" from the root projectnpm ERR!
npm ERR! conflicting peer dependency: eslint-plugin-vue@7.20.0npm ERR! node_modules/eslint-plugin-vue
npm ERR! peer eslint-plugin-vue@"'7.0.0"from@vue/eslint-config-standard@6.1.0npm ERR!node_modules/@vue/eslint-config-standard
npm ERR!dev @vue/esl

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

陌一一

你的鼓励是我最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值