当前位置: 首页 > ds >正文

npm install报错~[master] npm install npm error code ERESOLVE npm err

报错信息

我这个是vue3的项目,在执行npm install 命令时报错

[master]
npm install
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: jeecgboot-vue3@3.7.1
npm error Found: stylelint@16.23.0
npm error node_modules/stylelint
npm error dev stylelint@“^16.2.1” from the root project
npm error
npm error Could not resolve dependency:
npm error peer stylelint@“>= 11.x < 15” from stylelint-config-prettier@9.0.5
npm error node_modules/stylelint-config-prettier
npm error dev stylelint-config-prettier@“^9.0.5” from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /2025-08-05T13_57_49_108Z-eresolve-report.txt

npm error A complete log of this run can be found in: //_logs/2025-08-05T13_57_49_108Z-debug-0.log

解决方案

执行npm install --legacy-peer-deps命令,试一下,如果还是不行 就执行pnpm install,我听朋友说vue3需要使用pnpm命令来安装依赖,之前我做vue2项目的时候一直用的都是npm

npm install --legacy-peer-deps
http://www.xdnf.cn/news/17714.html

相关文章:

  • 大数据系统架构模式:驾驭海量数据的工程范式
  • RabbitMQ 消息转换器详解
  • 心理咨询|学生心理咨询评估系统|基于Springboot的学生心理咨询评估系统设计与实现(源码+数据库+文档)
  • 使用TextureView和MediaPlayer播放视频黑屏问题
  • AI模型服务接入WAF防火墙
  • 【C++】哈希表的实现(unordered_map和unordered_set的底层)
  • DDIA第五章:分布式数据复制中的一致性与冲突处理
  • 触想定制化工业一体机化身渔业预警终端,守望渔船安全
  • Spring Boot 菜单删除功能的实现与事务管理
  • 【前端基础】16、结构伪类(注:粗略说明)
  • 数据上云有什么好处?企业数据如何上云?
  • 基于FPGA的热电偶测温数据采集系统,替代NI的产品(一)FPGA 测温研究现状
  • 自由学习记录(81)
  • 【JAVA】使用系统音频设置播放音频
  • 零 shot 语义+在线闭环:深度学习让机器人学会“主动”
  • MySQL 数据操作全流程:创建、读取、更新与删除实战
  • 对比FRI 与 Ligero 证明大小
  • 怎么实现表征工程并强化模型的“事实性”“诚信性”
  • 深入解析大模型落地的四大核心技术:微调、提示词工程、多模态应用 及 企业级解决方案,结合代码示例、流程图、Prompt案例及技术图表,提供可落地的实践指南。
  • FreeRTOS学习:资源管理:互斥操作的本质
  • 腾讯云EdgeOne Pages深度使用指南
  • GPU指令集入门教程
  • 《 C Primer Plus》
  • 常用hook钩子函数
  • 快速了解DBSCAN算法
  • Vue.js设计于实现 - 响应式(三)
  • 音视频学习(五十二):ADTS
  • Graham 算法求二维凸包
  • Python 2025:最新技术趋势与展望
  • 每日五个pyecharts可视化图表-line:从入门到精通 (2)