码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • Vue安装插件时候中遇到冲突依赖解决方案


    错误如下:

    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! See C:\Users\曾\AppData\Local\npm-cache\eresolve-report.txt for a full report.

    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:\Users\曾\AppData\Local\npm-cache\_logs\2023-09-27T12_09_33_066Z-debug-0.log

    解决方法:

    npm install postcss-px-to-viewport@1.1.1 -D --legacy-peer-deps

    只需要在后面加 --legacy-peer-deps就能解决依赖冲突问题

    原理:

    --legacy-peer-deps 是一个在 npm 包管理器和 yarn 包管理器中使用的命令行选项。它允许你在一个项目中忽略 peer dependencies 的版本冲突或缺失,使项目可以正常安装和运行,而不会因为这些冲突或缺失导致错误

  • 相关阅读:
    11-k8s-service网络
    NSProxy
    美摄科技匿名化处理解决方案,包含模糊、同色、马赛克、效果遮挡等各种形式
    harbor(docker仓库)仓库部署 - 高可用
    Java实现手动操作定时任务功能的简单例子(动态创建定时任务)
    [西湖论剑 2022]web部分题解(更新中ing)
    如何在Python中操作MySQL?
    poi-tl模板导出word踩坑
    el-table,列表合并,根据名称列名称相同的品名将其它列值相同的进行合并
    解码平台收集
  • 原文地址:https://blog.csdn.net/m0_74099927/article/details/133363223
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号