Как можно исправить ошибку с bootstrap в laravel 9
Когда ввожу npm install выдаёт ошибку:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @vitejs/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/vite
npm ERR! dev vite@"^4.0.0" from the root project
npm ERR! peer vite@"^3.0.0 || ^4.0.0" from [email protected]
npm ERR! node_modules/laravel-vite-plugin
npm ERR! dev laravel-vite-plugin@"^0.7.2" from the root project
npm ERR! 1 more (vite-plugin-full-reload)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^3.0.0" from @vitejs/[email protected]
npm ERR! node_modules/@vitejs/plugin-react
npm ERR! dev @vitejs/plugin-react@"^2.2.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/vite
npm ERR! peer vite@"^3.0.0" from @vitejs/[email protected]
npm ERR! node_modules/@vitejs/plugin-react
npm ERR! dev @vitejs/plugin-react@"^2.2.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 build, но там тоже конкретные танцы с бубном были. Не очень подходящее решение.