2***@qq.com
2***@qq.com
  • 发布:2024-05-22 10:16
  • 更新:2024-07-29 17:41
  • 阅读:311

npx @dcloudio/uvm@latest更新后报错。编译不了

分类:uni-app

Run npm audit for details.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: cx_uniapp_vue3@0.0.1
npm ERR! Found: @dcloudio/vite-plugin-uni@3.0.0-4000720240327002
npm ERR! node_modules/@dcloudio/vite-plugin-uni
npm ERR! dev @dcloudio/vite-plugin-uni@"3.0.0-alpha-4010520240507001" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev @dcloudio/vite-plugin-uni@"3.0.0-alpha-4010520240507001" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: vite@5.2.8
npm ERR! node_modules/vite
npm ERR! peer vite@"^5.2.8" from @dcloudio/vite-plugin-uni@3.0.0-alpha-4010520240507001
npm ERR! node_modules/@dcloudio/vite-plugin-uni
npm ERR! dev @dcloudio/vite-plugin-uni@"3.0.0-alpha-4010520240507001" 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\10410\AppData\Local\npm-cache_logs\2024-05-22T01_52_18_031Z-eresolve-report.txt

2024-05-22 10:16 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com (作者)

我现在直接通过“npx degit dcloudio/uni-preset-vue#vite-ts my-vue3-project”建一个新项目,然后把旧的src弄进去。

  • 1***@qq.com

    我直接把包管理器换成yarn 顺利安装,一点事情没有

    2024-08-10 21:59

1***@qq.com

1***@qq.com

请问解决了么,和你一样的问题,啥子神仙问题,升级下依赖,现在跑不起来了

要回复问题请先登录注册