Next.js Discord

Discord Forum

Errors installing packages

Unanswered
shadow posted this in #help-forum
Open in Discord
Avatar
Why am i gettings errors when installing packages, nextjs is completly broken

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: fuelup@0.1.0
npm error Found: react@19.0.0-rc-69d4b800-20241021
npm error node_modules/react
npm error   react@"19.0.0-rc-69d4b800-20241021" from the root project
npm error
npm error Could not resolve dependency:
npm error peer react@"^16.x || ^17.x || ^18.x" from @radix-ui/react-icons@1.3.0
npm error node_modules/@radix-ui/react-icons
npm error   @radix-ui/react-icons@"*" 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\Diogo\AppData\Local\npm-cache\_logs\2024-10-26T23_40_45_387Z-eresolve-report.txt   
npm error A complete log of this run can be found in: C:\Users\Diogo\AppData\Local\npm-cache\_logs\2024-10-26T23_40_45_387Z-debug-0.log

1 Reply

Avatar
Rainbow trout
It tells you why you're getting this error, just read.
You're using React 19 while other dependencies you're using aren't compatible with React 19.