npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @vitejs/plugin-vue@2.3.3
npm ERR! Found: vite@3.0.3
npm ERR! node_modules/vite
npm ERR! dev vite@"^3.0.0" from the root project
npm ERR! peer vite@"^3.0.0" from laravel-vite-plugin@0.5.2
npm ERR! node_modules/laravel-vite-plugin
npm ERR! dev laravel-vite-plugin@"^0.5.0" from the root project
npm ERR! 1 more (vite-plugin-full-reload)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^2.5.10" from @vitejs/plugin-vue@2.3.3
npm ERR! node_modules/@vitejs/plugin-vue
npm ERR! dev @vitejs/plugin-vue@"^2.3.3" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: vite@2.9.14
npm ERR! node_modules/vite
npm ERR! peer vite@"^2.5.10" from @vitejs/plugin-vue@2.3.3
npm ERR! node_modules/@vitejs/plugin-vue
npm ERR! dev @vitejs/plugin-vue@"^2.3.3" 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\lee\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lee\AppData\Local\npm-cache\_logs\2022-07-30T17_49_47_950Z-debug-0.log
文件
package.json
内容:执行
npm install
无法安装,报错内容如下: