Unable to resolve dependency tree on "npx create-next-app ..."
See original GitHub issueOn 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:
- Created 2 years ago
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 …
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 … )