首页 > 其他分享 >安装eslint后可能因为eslint版本过高导致axios安装失败

安装eslint后可能因为eslint版本过高导致axios安装失败

时间:2022-09-21 00:23:55浏览次数:84  
标签:npm axios ERR -- standard vue eslint 安装

安装eslint后可能因为eslint版本过高导致axios安装失败,也就是包冲突

有两个命令可以解决此问题

  • 一是 --force 无视冲突,强制获取远端npm库资源 (覆盖之前)
  • 二是 --legacy-peer-deps 忽视依赖冲突,继续安装(不覆盖之前)

可以采用的的语句:

npm install axios --force 或者 npm install axios --legacy-peer-dep

-f 或 --force:将强制 npm 获取远程资源,即使磁盘上存在本地副本也是如此。
--legacy-peer-deps:在安装时忽略所有 peerDependencies,采用 npm 版本 4 到版本 6 的样式。

记录报错信息:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @vue/[email protected]
npm ERR! Found: [email protected]
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/[email protected]
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: [email protected]
npm ERR! node_modules/eslint-plugin-vue
npm ERR!   peer eslint-plugin-vue@"^7.0.0" from @vue/[email protected]
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 C:\Users\29756\AppData\Local\npm-cache\eresolve-report.txt for a full report.

标签:npm,axios,ERR,--,standard,vue,eslint,安装
From: https://www.cnblogs.com/fwdba/p/16714189.html

相关文章

  • 安装pycharm安装geopandas 成功经验
    本人经验,使用pycharm,10.3版本的python,感觉其他版本的python也能安装得上先安装geopandas依赖的包,下载连接,注意下载自己电脑版本对应的包版本GDAL-3.4.3-cp310-cp310......
  • Git 安装
    本文根据Git详细安装教程(详解Git安装过程的每一个步骤)_mukes的博客-CSDN博客_git安装安装一、Git安装包下载下载地址为 git-scm.com或者gitforwindows.org,后一个仅有......
  • Kafka本地单实例安装
    下载安装从国内镜像站点下载并安装Kafka安装包,以下载并安装v3.2.3版本为例。$tar-xzfkafka_2.12-3.2.3.tgz$cdkafka_2.12-3.2.3启动服务如下命令均在Kafka安装......
  • 【前端必会】Prettier,有了ESlint,还要Prettier
    介绍已经安装了ESLint为什么还要Prettier,主要是让ESLint专注于语法相关的验证,检查潜在问题。而代码格式化则有Prettier来接管对比参考:https://blog.csdn.net/aaqingying/......
  • Docker安装Oracle数据库
    Docker安装Oracle数据库一、准备工作如果没有安装docker:请参考:https://www.cnblogs.com/zhaostudy/p/16364138.html1.安装docker-ce(有docker老版本也可以直接使用)安......
  • Zookeeper安装(及简单介绍)
    Zookeeper安装(及简单介绍)什么是ZooKeeper它是一种集中式服务,用于维护配置信息,命名,提供分布式同步和提供组服务。Zookeeper是一个开源的分布式的,为分布式应用提供协调服......
  • Navicat16的安装
    Navicat官网:https://navicat.com.cn/链接:https://pan.baidu.com/s/1uSQbdvBIEo-ELHOwQu8dZg提取码:qvl1下载安装navicat,没有难度。激活注册要断网!!!先关闭nav......
  • 安装docker compose
    curl-Lhttps://get.daocloud.io/docker/compose/releases/download/v2.4.1/docker-compose-uname-s-uname-m>/usr/local/bin/docker-composesudochmod+x/usr/loc......
  • Java基础知识,JDK8下载安装环境配置
    Java基础知识Java的三种版本JavaSE:标准版,主要用于开发桌面程序,控制台开发等等JavaME:嵌入式开发,主要用于开发手机,小家电等等,目前使用的比较少JavaEE:企业级开发,主......
  • 安装VMware tools
    安装VMwaretools参考:https://blog.csdn.net/qq_45729306/article/details/113480874好处最大的好处是可以直接把windows界面的文件拖进linux虚拟机内。鼠标可以直......