question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to resolve dependency tree on "npx create-next-app ..."

See original GitHub issue

On the HEAD of the “main” branch of this repo, using node v16.6.2, as soon as I run:

npx create-next-app -e https://github.com/arshad/next-drupal-basic-starter

I receive the following BLOCKING error:

✔ What is your project named? … next-site
Creating a new Next.js app in /Users/xxx.xxx/Sites/next-drupal/next-site.

Downloading files from repo https://github.com/arshad/next-drupal-basic-starter. 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: basic-starter@0.3.9
npm ERR! Found: next@11.1.0
npm ERR! node_modules/next
npm ERR!   next@"^11.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^10.0.0" from next-drupal@0.12.0
npm ERR! node_modules/next-drupal
npm ERR!   next-drupal@"^0.12.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 ERR! 
npm ERR! See /Users/italo.mairo/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/italo.mairo/.npm/_logs/2021-08-11T22_23_03_603Z-debug.log

Aborting installation.
  npm install has failed.

What am I doing wrong?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
itamaircommented, Aug 13, 2021

I was able to move forward from this issue (thx again) and now facing this new one: https://github.com/chapter-three/next-drupal/issues/14

I am quite confident that other users could/would benefit from this QA/testing …

0reactions
itamaircommented, Aug 13, 2021

Thanks @ashad. really great work and support from you. It looks to me that existing NextJs examples (example_blog, example_marketing) are kind of detached from the last next-drupal Git repo enhancements … it is not clear how to use them. I had also to figure out by myself how to use the drupal-site example (its versioned configs files import and the next_default_content module … )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to resolve dependency tree error when installing npm ...
You have dependency conflict (incorrect and potentially broken dependency) as it says, so try to run the command with --force , or --legacy-peer ......
Read more >
Unable to resolve dependency tree error in Angular while ...
To fix Unable to resolve dependency tree error in Angular while installing `npm` packages follow the below steps. 1.
Read more >
create-next-app cannot resolve dependency tree #19145
I am trying to follow the official Nextjs tutorial but I hit an initial roadblock; the first command npx create-next-app nextjs-blog --use-npm --example ......
Read more >
How to Fix npm ERR ERESOLVE Unable to Resolve ...
Command:- npm config set legacy-peer-deps trueIn This Video We Will See How to Fix npm ERR ERESOLVE Unable to Resolve Dependency Tree ......
Read more >
ERESOLVE unable to resolve dependency tree when npm ...
Sometimes, When you are running npm install, You will get a dependency error npm ERR! ERESOLVE is unable to resolve the dependency tree....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found