Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency Conflict on Fresh Install (no pnpm) (ERESOLVE unable to resolve dependency tree) #872

Open
orrymr opened this issue Sep 26, 2024 · 1 comment

Comments

@orrymr
Copy link

orrymr commented Sep 26, 2024

I ran:

npx create-next-app@latest nextjs-dashboard --example "https://github.com/vercel/next-learn/tree/main/dashboard/starter-example"

(no pnpm)

I got this output:

Creating a new Next.js app in /home/<redacted>/Desktop/nextjs-dashboard.

Downloading files from repo https://github.com/vercel/next-learn/tree/main/dashboard/starter-example. This might take a moment.

Installing packages. This might take a couple of minutes.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: undefined@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"19.0.0-rc-f38c22b244-20240704" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@">= 16" from @heroicons/[email protected]
npm ERR! node_modules/@heroicons/react
npm ERR!   @heroicons/react@"^2.1.4" 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! /home/<redacted>/.npm/_logs/2024-09-26T18_47_02_666Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in: /home/<redacted>/.npm/_logs/2024-09-26T18_47_02_666Z-debug-0.log

Aborting installation.
  npm install has failed.

Seems weird because wouldn't [email protected] be >= 16?

@savvy-itch
Copy link

savvy-itch commented Sep 28, 2024

I had the same issue. This comment helped me fix the errors:
#802 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants