PS E:\pet-merchant> npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: uni-cli@1.0.0
npm ERR! Found: vite@3.2.7
npm ERR! node_modules/vite
npm ERR! dev vite@"^3.2.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^4.0.0" from @dcloudio/vite-plugin-uni@3.0.0-alpha-3080320230523001
npm ERR! node_modules/@dcloudio/vite-plugin-uni
npm ERR! dev @dcloudio/vite-plugin-uni@"^3.0.0-alpha-3061620230109002" 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\admin\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
2 个回复
7***@qq.com (作者)
使用 npm install --legacy-peer-deps 可以正常安装,不使用则会报错
7***@qq.com (作者)
已解决!