npm安装时出现ERESOLVE问题
npm i 安装时,经常会出现如下错误
npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: jzyj2@0.1.0 npm ERR! Found: echarts@5.4.2 npm ERR! node_modules/echarts npm ERR! echarts@"^5.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer echarts@"^4.1.0" from echarts-gl@1.1.2 npm ERR! node_modules/echarts-gl npm ERR! echarts-gl@"^1.1.1" 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! npm ERR! For a full report see: npm ERR! C:\Users\dell\AppData\Local\npm-cache\_logs\2023-04-17T04_54_59_038Z-eresolve-report.txt npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\dell\AppData\Local\npm-cache\_logs\2023-04-17T04_54_59_038Z-debug-0.log
解决方法
npm i --legacy-peer-deps
引用自:https://blog.csdn.net/weixin_42624898/article/details/123694722
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 25岁的心里话
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器