I am getting errors while trying to install create-t3-turbo dependencies, how do i fix them?

This is my error message PS C:\Users\cc09p\OneDrive\Desktop\Programming\my-turborepo> npm i npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: @acme/nextjs@0.1.0 npm ERR! Found: @tanstack/react-query@4.35.3 npm ERR! node_modules/@tanstack/react-query npm ERR! @tanstack/react-query@"^4.35.3" from @acme/nextjs@0.1.0 npm ERR! apps/nextjs npm ERR! @acme/nextjs@0.1.0 npm ERR! node_modules/@acme/nextjs npm ERR! workspace apps\nextjs from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @tanstack/react-query@"5.0.0-alpha.71" from @tanstack/react-query-next-experimental@5.0.0-alpha.80 npm ERR! node_modules/@tanstack/react-query-next-experimental npm ERR! @tanstack/react-query-next-experimental@"5.0.0-alpha.80" from @acme/nextjs@0.1.0 npm ERR! apps/nextjs npm ERR! @acme/nextjs@0.1.0 npm ERR! node_modules/@acme/nextjs npm ERR! workspace apps\nextjs 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\cc09p\AppData\Local\npm-cache_logs\2023-09-19T19_06_54_375Z-eresolve-report.txt
1 Reply
shiroyasha9
shiroyasha912mo ago
Try running the command again with the flag legacy-peer-deps npm i --legacy-peer-deps
Want results from more Discord servers?
Add your server