infinitered / ignite

Infinite Red's battle-tested React Native project boilerplate, along with a CLI, component/model generators, and more! 9 years of continuous development and counting.
MIT License
17.71k stars 1.4k forks source link

npm ERR! ERESOLVE unable to resolve dependency tree #2759

Closed muhammetaydinn closed 2 months ago

muhammetaydinn commented 2 months ago

Describe the bug


The following error occurred:

    npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: pizza-app@0.0.1
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   react@"18.2.0" from the root project
npm ERR!   peer react@">=16.8.0" from @testing-library/react-native@12.6.0
npm ERR!   node_modules/@testing-library/react-native
npm ERR!     dev @testing-library/react-native@"^12.5.2" from the root project
npm ERR!   1 more (react-native)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^18.3.1" from react-test-renderer@18.3.1
npm ERR! node_modules/react-test-renderer
npm ERR!   peer react-test-renderer@">=16.8.0" from @testing-library/react-native@12.6.0
npm ERR!   node_modules/@testing-library/react-native
npm ERR!     dev @testing-library/react-native@"^12.5.2" 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\47eyu\AppData\Local\npm-cache\_logs\2024-08-26T11_46_24_049Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\47eyu\AppData\Local\npm-cache\_logs\2024-08-26T11_46_24_049Z-debug-0.log

    Consider opening an issue with the following information at:
    https://github.com/infinitered/ignite/issues/new?template=bug_report.yml&labels=bug

    \  Gathering system and project details   

System
  platform           win32
  arch               x64
  cpu                12 cores     Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
  directory          PizzaApp     C:\Users\47eyu\Desktop\Muhammet\MYOPENSOURCE\PizzaApp

JavaScript (and globally-installed packages)
  node                    20.17.0      C:\Program Files\nodejs\node.EXE
  npm                     9.4.1        C:\Program Files\nodejs\npm.CMD
    @angular/cli          16.2.0
    firebase-tools        13.10.0
    http-server           14.1.1
    nodemon               2.0.20
    npm                   9.4.1
    pm2                   5.3.1
    react-native-cli      2.0.1
    react-native-rename   3.2.13
    react-native          0.72.3
    typescript            5.1.6
    yarn                  1.22.19
  yarn                    1.22.19      C:\Users\47eyu\AppData\Roaming\npm\yarn.CMD
  pnpm                    -            not installed
  bun                     -            not installed
  expo                    -            managed

.bin\ignite.CMD
  ignite src         build        C:\Users\47eyu\AppData\Local\npm-cache\_npx\bec2839915ba8fc3\node_modules\ignite-cli\build

Android
  java               17.0.8       C:\Program Files\Common Files\Oracle\Java\javapath\java.EXE
  android home       -            C:\Users\47eyu\AppData\Local\Android\Sdk

Tools
  git                git version 2.32.0.windows.1   C:\Program Files\Git\cmd\git.EXE

Ignite version

9.9.0

Additional info

PS C:\Users\47eyu\Desktop\Muhammet\MYOPENSOURCE> npx ignite-cli doctor
Need to install the following packages:
  ignite-cli@9.9.0
Ok to proceed? (y)
npm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
System
  platform           win32
  arch               x64
  cpu                12 cores       Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz    
  directory          MYOPENSOURCE   C:\Users\47eyu\Desktop\Muhammet\MYOPENSOURCE 

JavaScript (and globally-installed packages)
  node                    20.17.0      C:\Program Files\nodejs\node.EXE
  npm                     9.4.1        C:\Program Files\nodejs\npm.CMD
    @angular/cli          16.2.0
    firebase-tools        13.10.0
    http-server           14.1.1
    nodemon               2.0.20
    npm                   9.4.1
    pm2                   5.3.1
    react-native-cli      2.0.1
    react-native-rename   3.2.13
    react-native          0.72.3
    typescript            5.1.6
    yarn                  1.22.19
  yarn                    1.22.19      C:\Users\47eyu\AppData\Roaming\npm\yarn.CMD
  pnpm                    -            not installed
  bun                     -            not installed
  expo                    -            managed

Ignite
  ignite-cli         9.9.0        C:\Users\47eyu\AppData\Local\npm-cache\_npx\e31027f3785124a8\node_modules\.bin\ignite.CMD
  ignite src         build        C:\Users\47eyu\AppData\Local\npm-cache\_npx\e31027f3785124a8\node_modules\ignite-cli\build

Android
  java               17.0.8       C:\Program Files\Common Files\Oracle\Java\javapath\java.EXE
  android home       -            C:\Users\47eyu\AppData\Local\Android\Sdk

Tools
  git                git version 2.32.0.windows.1   C:\Program Files\Git\cmd\git.EXE 
muhammetaydinn commented 2 months ago

I used Yarn instead of npm to install the package, and it was successfully installed.