问题

npm ERR! Could not resolve dependency:
conflicting peer dependency: eslint-plugin-vue@7.20.0

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! 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! See D:\software_learning\Web\nodejs\node_cache\eresolve-report.txt for a full report.       npm ERR! A complete log of this run can be found in:
npm ERR!     D:\software_learning\Web\nodejs\node_cache\_logs\2022-08-15T06_22_18_898Z-debug-0.log

解决

在安装命令后加–legacy-peer-deps
比如我安装的是axios
npm install axios --save --legacy-peer-deps

原因

npm下载时
–legacy-peer-deps
在NPM v7中,现在默认安装peerDependencies。

在很多情况下,npm版本问题会导致下载冲突,从而中断安装过程。

–legacy-peer-deps标志是在v7中引入的,目的是绕过peerDependency自动安装

结果

安装成功了

思路来源于:
https://blog.csdn.net/weixin_47979372/article/details/125031241

安装axios时报错相关推荐

  1. Ubuntu安装Ceres库-安装依赖时报错:E:无法定位软件包 libcxsparse3.1.2_朱国鑫的博客-CSDN博客

    Ubuntu安装Ceres库-安装依赖时报错:E:无法定位软件包 libcxsparse3.1.2_朱国鑫的博客-CSDN博客

  2. pip安装kolla-ansible时报错Cannot install ‘PyYAML‘的解决方法

    pip安装kolla-ansible时报错Cannot install 'PyYAML'的解决方法 参考文章: (1)pip安装kolla-ansible时报错Cannot install 'PyYA ...

  3. mac  安装brew时报错的问题及解决方式

    mac  安装brew时报错的问题及解决方式 参考文章: (1)mac  安装brew时报错的问题及解决方式 (2)https://www.cnblogs.com/ritte/p/11207036.h ...

  4. python 调用 tensorflow.dll_解决windows上安装tensorflow时报错,“DLL load failed: 找不到指定的模块”的问题...

    最近打算开始研究一下机器学习,今天在windows上装tensorflow花了点功夫,其实前面的步骤不难,只要依次装好python3.5,numpy,tensorflow就行了,有一点要注意的是目前只 ...

  5. 安装 node-sass 时报错

    新建vue项目时,长串的报错,在模板存在且引用路径无误的情况下始终找不到某某模板,如 This dependency was not found: * !!vue-style-loader!css-l ...

  6. mysql pool not open_安装 MariaDb 时报错:Could not open mysql.plugin table

    安装 MariaDb 时报错 2015-12-10 10:52:31 13f4 InnoDB: Warning: Using innodb_additional_mem_pool_size is DE ...

  7. 安装mysql时报错:mysql file /usr/share/mysql/czech/errmsg.sys from install of MySQL-serve的问题...

    2019独角兽企业重金招聘Python工程师标准>>> 安装mysql时报错:mysql file /usr/share/mysql/czech/errmsg.sys from in ...

  8. 安装Nginx时报错 the HTTP cache module requires md5 functions

    安装Nginx时报错 ./configure: error: the HTTP rewrite module requires the PCRE library. 安装pcre-devel解决问题 y ...

  9. git 上下载的项目在本地安装依赖时报错 Could not resolve dependency

    安装依赖时报错:无法安装依赖 看报错里面的提示:this command with --force, or --legacy-peer-deps –force 会无视冲突,并强制获取远端npm库资源, ...

  10. pip3 安装pycrypto 时报错

    在windows 下使用pip3 安装pycrypto 时报错: 问题原因: pycrypto.pycrytodome和crypto是一个东西,crypto在python上面的名字是pycrypto, ...

最新文章

  1. linux先运行后面指令,Linux基础命令(6)
  2. Kali Linux 安全渗透教程第三更1.2 安全渗透所需工具
  3. 使用OpenGL实现翻书动画
  4. delphi打包python_使用Delphi 编写Python Extension
  5. 【php7扩展开发三】ini配置
  6. CF1379F1 Chess Strikes Back (easy version)(鸽笼原理、线段树)
  7. android中资源文件的两种访问方式,Android_Android学习笔记-保存文件(Saving Files),Android设备有两种文件存储区域 - phpStudy...
  8. qt使用自带的日志输出实例输出日志时,在日志中显示行数
  9. static和extern对函数的作用
  10. Web笔记-使用jsonp解决跨域请求(CROS)问题
  11. windows无法访问指定设备_恢复 你的电脑/设备需要修改 未连接或无法访问所需设备。...
  12. Centos下磁盘管理
  13. surf中,颜色描述第四维
  14. 企业内部IT报修是如何操作的?
  15. 马蹄疾 | 聊聊你可能并没有完全掌握的 Flex 布局:从概念入手,丝丝入扣
  16. 《I'm a Mac:雄狮训练手册》——2.3 账户类型
  17. 《从前慢》 ----- 作者:木心
  18. 程序媛为了万圣节PARTY可谓是别出心裁,她居然cos了一只bug
  19. 如何编写yaml格式的Ansible主机清单(inventory)及清单变量使用Demo
  20. 如今引流横行的时代,你还缺乏流量吗?

热门文章

  1. 修改hosts文件,解决端口占用方法
  2. 流程和企业成熟度模型(PEMM)
  3. MySQL转账储存过程_实用的银行转账存储过程和流水号生成存储过程
  4. 分享400个微信小程序模板和小程序设计模板
  5. 微信小程序提供 模板:template
  6. 下载docker镜像包
  7. 双稳态电路的两个稳定状态是什么_电子电路原理图识图心得及电路分析方法
  8. Java 编码规范10(单元测试)
  9. intellij idea 导出可执行jar
  10. cad字体修改方案分享-缺少SHX字体、替换字体