npm warn using --force Recommended protections disabled.
PS E:\vscodespace\shxsboot-vue3> npm i
npm error code ERESOLVE
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: jeecgboot-vue3@3.7.0
npm error Found: vite@5.4.10
npm error
npm error While resolving: jeecgboot-vue3@3.7.0
npm error Found: vite@5.4.10
npm error While resolving: jeecgboot-vue3@3.7.0
npm error Found: vite@5.4.10
npm error Found: vite@5.4.10
npm error node_modules/vite
npm error node_modules/vite
npm error dev vite@"^5.2.11" from the root project
npm error dev vite@"^5.2.11" from the root project
npm error peerOptional vite@"^2.9.0 || ^3.0.0-0 || ^4.0.0 || ^5.0.0-0" from unocss@0.58.9
npm error node_modules/.store/unocss@0.58.9/node_modules/unocss
npm error unocss@0.58.9
npm error node_modules/unocss
npm error dev unocss@"^0.58.5" from the root project
npm error 9 more (vite-plugin-compression, vite-plugin-mkcert, ...)
npm error
npm error Could not resolve dependency:
npm error peer vite@"^2.0.0" from vite-plugin-optimize-persist@0.1.2
npm error node_modules/vite-plugin-optimize-persist
npm error dev vite-plugin-optimize-persist@"^0.1.2" 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 C:\Users\wang\AppData\Local\npm-cache\_logs\2024-10-26T14_56_38_366Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\wang\AppData\Local\npm-cache\_logs\2024-10-26T14_56_38_366Z-debug-0.log
如何解决呢,通过查询是版本冲突的问题
原因是我这个项目下载的vite版本太高了
需要先删除node_modoles ,然后重新下载依赖
删除后重新执行:pnpm install
启动成功