安装npm install vuedraggable@next报错

npm install vuedraggable@next

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @vitejs/plugin-vue@3.1.0 npm ERR! Found: vite@5.4.20 npm ERR! node_modules/vite npm ERR! peer vite@">=2.0.0" from vite-plugin-compression@0.5.1 npm ERR! node_modules/vite-plugin-compression npm ERR! dev vite-plugin-compression@"^0.5.1" from the root project npm ERR! peer vite@">=2.0.0" from vite-plugin-svg-icons@2.0.1 npm ERR! node_modules/vite-plugin-svg-icons npm ERR! dev vite-plugin-svg-icons@"2.0.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer vite@"^3.0.0" from @vitejs/plugin-vue@3.1.0 npm ERR! node_modules/@vitejs/plugin-vue npm ERR! dev @vitejs/plugin-vue@"3.1.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: vite@3.2.11 npm ERR! node_modules/vite npm ERR! peer vite@"^3.0.0" from @vitejs/plugin-vue@3.1.0 npm ERR! node_modules/@vitejs/plugin-vue npm ERR! dev @vitejs/plugin-vue@"3.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! npm ERR! For a full report see: npm ERR! D:\Program Files\nodejs\node_cache\_logs\2025-09-26T06_57_23_827Z-eresolve-report.txt npm ERR! A complete log of this run can be found in: D:\Program Files\nodejs\node_cache\_logs\2025-09-26T06_57_23_827Z-debug-0.log

问题:依赖冲突

解决办法:

复制代码
npm install vite@^5.0.0 @vitejs/plugin-vue@^5.0.0
npm install vuedraggable@next
相关推荐
吴声子夜歌4 分钟前
ES6——二进制数组详解
前端·ecmascript·es6
码事漫谈32 分钟前
手把手带你部署本地模型,让你Token自由(小白专属)
前端·后端
ZC跨境爬虫36 分钟前
【爬虫实战对比】Requests vs Scrapy 笔趣阁小说爬虫,从单线程到高效并发的全方位升级
前端·爬虫·scrapy·html
爱上好庆祝37 分钟前
svg图片
前端·css·学习·html·css3
王夏奇1 小时前
python中的__all__ 具体用法
java·前端·python
大家的林语冰2 小时前
《前端周刊》尤大开源 Vite+ 全家桶,前端工业革命启动;尤大爆料 Void 云服务新产品,Vite 进军全栈开发;ECMA 源码映射规范......
前端·javascript·vue.js
jiayong232 小时前
第 8 课:开始引入组合式函数
前端·javascript·学习
田八2 小时前
聊聊AI的发展史,AI的爆发并不是偶然
前端·人工智能·程序员
zhanghongbin012 小时前
AI 采集器:Claude Code、OpenAI、LiteLLM 监控
java·前端·人工智能
IT_陈寒2 小时前
Python的列表推导式里藏了个坑,差点让我加班到凌晨
前端·人工智能·后端