安装axios时报错
问题
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时报错相关推荐
- Ubuntu安装Ceres库-安装依赖时报错:E:无法定位软件包 libcxsparse3.1.2_朱国鑫的博客-CSDN博客
Ubuntu安装Ceres库-安装依赖时报错:E:无法定位软件包 libcxsparse3.1.2_朱国鑫的博客-CSDN博客
- pip安装kolla-ansible时报错Cannot install ‘PyYAML‘的解决方法
pip安装kolla-ansible时报错Cannot install 'PyYAML'的解决方法 参考文章: (1)pip安装kolla-ansible时报错Cannot install 'PyYA ...
- mac 安装brew时报错的问题及解决方式
mac 安装brew时报错的问题及解决方式 参考文章: (1)mac 安装brew时报错的问题及解决方式 (2)https://www.cnblogs.com/ritte/p/11207036.h ...
- python 调用 tensorflow.dll_解决windows上安装tensorflow时报错,“DLL load failed: 找不到指定的模块”的问题...
最近打算开始研究一下机器学习,今天在windows上装tensorflow花了点功夫,其实前面的步骤不难,只要依次装好python3.5,numpy,tensorflow就行了,有一点要注意的是目前只 ...
- 安装 node-sass 时报错
新建vue项目时,长串的报错,在模板存在且引用路径无误的情况下始终找不到某某模板,如 This dependency was not found: * !!vue-style-loader!css-l ...
- 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 ...
- 安装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 ...
- 安装Nginx时报错 the HTTP cache module requires md5 functions
安装Nginx时报错 ./configure: error: the HTTP rewrite module requires the PCRE library. 安装pcre-devel解决问题 y ...
- git 上下载的项目在本地安装依赖时报错 Could not resolve dependency
安装依赖时报错:无法安装依赖 看报错里面的提示:this command with --force, or --legacy-peer-deps –force 会无视冲突,并强制获取远端npm库资源, ...
- pip3 安装pycrypto 时报错
在windows 下使用pip3 安装pycrypto 时报错: 问题原因: pycrypto.pycrytodome和crypto是一个东西,crypto在python上面的名字是pycrypto, ...
最新文章
- linux先运行后面指令,Linux基础命令(6)
- Kali Linux 安全渗透教程第三更1.2 安全渗透所需工具
- 使用OpenGL实现翻书动画
- delphi打包python_使用Delphi 编写Python Extension
- 【php7扩展开发三】ini配置
- CF1379F1 Chess Strikes Back (easy version)(鸽笼原理、线段树)
- android中资源文件的两种访问方式,Android_Android学习笔记-保存文件(Saving Files),Android设备有两种文件存储区域 - phpStudy...
- qt使用自带的日志输出实例输出日志时,在日志中显示行数
- static和extern对函数的作用
- Web笔记-使用jsonp解决跨域请求(CROS)问题
- windows无法访问指定设备_恢复 你的电脑/设备需要修改 未连接或无法访问所需设备。...
- Centos下磁盘管理
- surf中,颜色描述第四维
- 企业内部IT报修是如何操作的?
- 马蹄疾 | 聊聊你可能并没有完全掌握的 Flex 布局:从概念入手,丝丝入扣
- 《I'm a Mac:雄狮训练手册》——2.3 账户类型
- 《从前慢》 ----- 作者:木心
- 程序媛为了万圣节PARTY可谓是别出心裁,她居然cos了一只bug
- 如何编写yaml格式的Ansible主机清单(inventory)及清单变量使用Demo
- 如今引流横行的时代,你还缺乏流量吗?