infinitered / ignite

Infinite Red's battle-tested React Native project boilerplate, along with a CLI, component/model generators, and more!
MIT License
17.37k stars 1.38k forks source link

Can't complete ignite-cli new PizzaApp - sharp exit code 1 #2747

Open danclarke opened 4 weeks ago

danclarke commented 4 weeks ago

Describe the bug

As part of learning the setup, executing ignite-cli new PizzaApp fails, at least on my environment. It appears to fail on the sharp execution, with an exit code of 1. I've tried with Node 20.9.0 and 22.6.0, same results in both. My environment is pretty clean. The only potential thing I can think of is I already have libvips installed via Brew.

Execution is as below:

npx --verbose ignite-cli@latest new PizzaApp
npm verb cli /Users/danielclarke/.nvm/versions/node/v20.9.0/bin/node /Users/danielclarke/.nvm/versions/node/v20.9.0/lib/node_modules/npm/bin/npm-cli.js
npm info using npm@10.1.0
npm info using node@v20.9.0
npm verb title npm exec ignite-cli@latest new PizzaApp
npm verb argv "exec" "--loglevel" "verbose" "--" "ignite-cli@latest" "new" "PizzaApp"
npm verb logfile logs-max:10 dir:/Users/danielclarke/.npm/_logs/2024-08-16T16_40_44_426Z-
npm verb logfile /Users/danielclarke/.npm/_logs/2024-08-16T16_40_44_426Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/ignite-cli 149ms (cache revalidated)
Need to install the following packages:
ignite-cli@9.8.2
Ok to proceed? (y) y
npm http fetch GET 200 https://registry.npmjs.org/ignite-cli 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/yaml 6ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/gluegun 10ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/deepmerge-json 12ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/sharp 11ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/pluralize 34ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/ora 36ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/colors 36ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/semver 39ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/execa 39ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/ejs 41ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/cosmiconfig 39ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/apisauce 40ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/fs-jetpack 41ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/enquirer 41ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/cli-table3 42ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.repeat 40ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.trim 41ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/yargs-parser 41ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.trimend 41ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/cross-spawn 42ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/which 44ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.camelcase 39ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.padstart 41ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.startcase 39ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.pad 44ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.padend 43ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.kebabcase 40ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.uppercase 39ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.lowercase 41ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/app-module-path 43ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/semver 38ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/tunnel-agent 37ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/node-addon-api 37ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.snakecase 41ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/prebuild-install 38ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/tar-fs 39ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.trimstart 41ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.upperfirst 40ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lodash.lowerfirst 41ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color 40ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/simple-get 40ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/detect-libc 39ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/object-assign 27ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/string-width 27ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/shebang-command 25ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/parse-json 27ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/axios 29ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/path-key 28ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/path-type 28ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/onetime 26ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/jake 27ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/human-signals 26ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/npm-run-path 26ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/import-fresh 30ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/merge-stream 26ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/get-stream 27ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/ansi-colors 28ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/minimatch 26ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/rimraf 27ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/chalk 24ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/is-interactive 23ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/strip-ansi 23ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/cli-cursor 24ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/strip-final-newline 30ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/isexe 23ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/wcwidth 25ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/log-symbols 24ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/cli-spinners 24ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/signal-exit 32ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/is-stream 34ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@types%2fparse-json 37ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lru-cache 26ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/follow-redirects 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/emoji-regex 1ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/is-fullwidth-code-point 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/parent-module 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/resolve-from 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/lines-and-columns 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/json-parse-even-better-errors 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@babel%2fcode-frame 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/error-ex 5ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/shebang-regex 1ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/async 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/filelist 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/mimic-fn 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/brace-expansion 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/glob 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/callsites 1ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/ansi-styles 1ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/supports-color 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-convert 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/has-flag 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-name 0ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/balanced-match 1ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/concat-map 1ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/escape-string-regexp 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/ansi-regex 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/defaults 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/restore-cursor 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/picocolors 6ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@babel%2fhighlight 7ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/is-arrayish 6ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/js-tokens 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/@babel%2fhelper-validator-identifier 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/once 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/inflight 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/path-is-absolute 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/fs.realpath 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/inherits 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/wrappy 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/yallist 1ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/color-string 10ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/minimist 10ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 10ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/github-from-package 11ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/expand-template 11ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/node-abi 12ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/simple-concat 10ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/rc 11ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/napi-build-utils 13ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/bare-fs 11ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/tar-stream 11ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/pump 13ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 10ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/decompress-response 13ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/bare-path 12ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/simple-swizzle 0ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/ini 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/strip-json-comments 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/chownr 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/deep-extend 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/mimic-response 1ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/bare-events 8ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/bare-os 9ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/b4a 9ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/bare-stream 9ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/streamx 7ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/fast-fifo 9ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/queue-tick 1ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/text-decoder 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/clone 1ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/fs-constants 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/bl 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/readable-stream 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/buffer 4ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/util-deprecate 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/string_decoder 3ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/base64-js 1ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/ieee754 2ms (cache hit)
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
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 189ms
npm info run sharp@0.32.6 install node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm info run sharp@0.32.6 install { code: 1, signal: null }
npm verb exit 1
npm verb unfinished npm timer reify 1723826447369
npm verb unfinished npm timer reify:build 1723826447852
npm verb unfinished npm timer build 1723826447852
npm verb unfinished npm timer build:deps 1723826447852
npm verb unfinished npm timer build:run:install 1723826447856
npm verb unfinished npm timer build:run:install:node_modules/sharp 1723826447856
npm verb code 1

Ignite version

9.8.2

Additional info

System
  platform           darwin
  arch               arm64
  cpu                12 cores     Apple M2 Max
  directory          reactlearn   /Users/danielclarke/Documents/Projects/Client/reactlearn

JavaScript (and globally-installed packages)
  node               22.6.0       /Users/danielclarke/.nvm/versions/node/v22.6.0/bin/node
  npm                10.8.2       /Users/danielclarke/.nvm/versions/node/v22.6.0/bin/npm
    corepack         0.29.3
    npm              10.8.2
  yarn               -            not installed
  pnpm               -            not installed
  bun                -            not installed
  expo               -            not installed

Ignite
  ignite-cli         9.8.2        /Users/danielclarke/.npm/_npx/bec2839915ba8fc3/node_modules/.bin/ignite
  ignite src         build        /Users/danielclarke/.npm/_npx/bec2839915ba8fc3/node_modules/ignite-cli/build

Android
  java               21.0.3       /usr/bin/java
  android home       -            undefined

iOS
  xcode              15.4
  cocoapods          Not installed

Tools
  git                git version 2.39.3 (Apple Git-146)   /usr/bin/git
frankcalise commented 3 weeks ago

Hmm I'm running Node 20.10.0 without any issue.

Can you try with npm install --legacy-per-deps or another package manager, such as yarn?

danclarke commented 3 weeks ago

I would give it a bash, except it's not even getting that far. It doesn't create the app directory, let alone populate any boilerplate to run an npm install. Is there a flag I can use to add more debug, specifically with the sharp install that's failing?

frankcalise commented 3 weeks ago

Yeah you can add --debug

You can also pass --install-deps=false so that it just copies the boilerplate then you can manually install

danclarke commented 3 weeks ago

I don't know what's changed, but the initial creation is working now. I'm using Node 22.6.0. I do have to separately install the dependencies though, with npm install --legacy-per-deps after it crashes out. The initial boilerplate creation errors out with this message:

The following error occurred:

    npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: pizza-app@0.0.1
npm error Found: react@18.2.0
npm error node_modules/react
npm error   react@"18.2.0" from the root project
npm error   peer react@">=16.8.0" from @testing-library/react-native@12.6.0
npm error   node_modules/@testing-library/react-native
npm error     dev @testing-library/react-native@"^12.5.2" from the root project
npm error   1 more (react-native)
npm error
npm error Could not resolve dependency:
npm error peer react@"^18.3.1" from react-test-renderer@18.3.1
npm error node_modules/react-test-renderer
npm error   peer react-test-renderer@">=16.8.0" from @testing-library/react-native@12.6.0
npm error   node_modules/@testing-library/react-native
npm error     dev @testing-library/react-native@"^12.5.2" 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 /Users/danielclarke/.npm/_logs/2024-08-16T20_31_30_727Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/danielclarke/.npm/_logs/2024-08-16T20_31_30_727Z-debug-0.log
frankcalise commented 3 weeks ago

@danclarke Thanks, that's interesting will have to debug it. Not an issue with yarn at the moment

leonskim commented 1 week ago

Hey @danclarke! I'm wondering if this issue still occurs. It didn't work and I've seen the same issue that you saw when I initially checked a couple weeks ago, but it started working as I was looking into this last week.

danclarke commented 1 week ago

@leonskim Almost! I just tried this morning fresh with Node 20.9.0. The initial tool works, but loading the dependencies after going through the questions in fails as before:

npx --verbose ignite-cli@latest new PizzaApp
npm verb cli /Users/danielclarke/.nvm/versions/node/v20.9.0/bin/node /Users/danielclarke/.nvm/versions/node/v20.9.0/lib/node_modules/npm/bin/npm-cli.js
npm info using npm@10.1.0
npm info using node@v20.9.0
npm verb title npm exec ignite-cli@latest new PizzaApp
npm verb argv "exec" "--loglevel" "verbose" "--" "ignite-cli@latest" "new" "PizzaApp"
npm verb logfile logs-max:10 dir:/Users/danielclarke/.npm/_logs/2024-09-04T10_12_53_430Z-
npm verb logfile /Users/danielclarke/.npm/_logs/2024-09-04T10_12_53_430Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/ignite-cli 725ms (cache updated)
Need to install the following packages:
ignite-cli@9.9.1
Ok to proceed? (y)
npm http fetch GET 200 https://registry.npmjs.org/ignite-cli 4ms (cache hit)
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 209ms
npm http fetch GET 200 https://registry.npmjs.org/axios 139ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/ignite-cli/-/ignite-cli-9.9.1.tgz 492ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/ejs 339ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/lodash.trimend 340ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/semver 340ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/lodash.trim 341ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/apisauce 62ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/gluegun 73ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/node-abi 85ms (cache updated)

✅ What bundle identifier? · com.pizzaapp
✅ Where do you want to start your project? · /Users/danielclarke/Documents/Projects/React Learn/PizzaApp
✅ Do you want to use Expo? · Expo
✅ Which Expo workflow? (You can switch between them later with a little work -- here's how: https://ignitecookbook.com/docs/recipes/SwitchBetweenExpoGoCNG) · Expo Go
✅ Do you want to initialize a git repository? (Y/n) · Yes
✅ Remove demo code? We recommend leaving it in if it's your first time using Ignite (y/N) · No
✅ Which package manager do you want to use? · npm
✅ Do you want to install dependencies? (Y/n) · Yes

                                               .;;,.    .clll.
                                              .clll,    ,llll.           ...
                                               .,;,.    ;lllc'.,.   .';cllllc,
     .',,.                           ...      .'',,. .:lllllllll. .;lllc:;clll,
    .llll,                    .,...;cllll:.   ,llll, .llllllc,,'  clll:'.,cllc.
    ,llll'       ......;::.  'llcclllllllll'  ,llll,   .llll.    ,lllllllll:'
    ,llll.    .;clllllclll.  'llllc,..,llll,  :llll.   'llll.    ,lllc,''..
    ;llll.   :llllc:cllllc.  ,llll.   .llll, .lllll.   ,lllc...  ,lll:...';:.
   .llllc.  ;lll;.   :lll,   ;lll;    'llll, .llllc.   ,llllcll' .:lllllllll,
   .llll,  'lll:    .clll,   :lll,    ,llll. 'llll,    'lllllcc'   ';::::;'.
   .llll,  ,lll:    .llll'  .llll,    ;llll. ,llll,     .....             .',..
   ,llll.  'llll:,,:cllll.  .lllc.    .''..  ... ....',;         ..',,:::;'..
   ,llll.   'clllllllllll.     .....        ..,::cllllc.   .',:clllc;,'.
   :llll.     ',;,'.;lllc...,;:clll;  ..',:cllllllllll:,;clllllc;,'.
   llll:        ...'cllllllllllllll::cllllllc;,',cllllllllc;'..
   llll,   ..,clllllllll::,,.,lllllllc:,'...    :lllllc,..
   c:;,.  .cllllc:;:llll.    ,ll:;,..          ;ll:,..
          :lll,.  .clll,     ..               .,..
          :lll:,,cllll,
          .cllllllllc'
           .'cllll:.

    █ Creating PizzaApp using Ignite 9.9.1
    █ Powered by  ∞ Infinite Red  (https://infinite.red)
    █ Package Manager: npm
    █ Bundle identifier: com.pizzaapp
    █ Path: /Users/danielclarke/Documents/Projects/React Learn/PizzaApp
    ────────────────────────────────────────────────────

    🖨  3D-printing a new React Native app
    🎨 Getting those last few details perfect
    ❌ Installing npm dependencies (wow these are heavy)

The following error occurred:

    npm verb cli /Users/danielclarke/.nvm/versions/node/v20.9.0/bin/node /Users/danielclarke/.nvm/versions/node/v20.9.0/bin/npm
npm info using npm@10.1.0
npm info using node@v20.9.0
npm verb title npm install
npm verb argv "install"
npm verb logfile logs-max:10 dir:/Users/danielclarke/.npm/_logs/2024-09-04T10_13_28_423Z-
npm verb logfile /Users/danielclarke/.npm/_logs/2024-09-04T10_13_28_423Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/@expo-google-fonts%2fspace-grotesk 1207ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@expo%2fmetro-runtime 173ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/react-native 331ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/@types%2freact 148ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/react 295ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/@react-native-async-storage%2fasync-storage 107ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@react-navigation%2fbottom-tabs 119ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@react-navigation%2fnative 107ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/react-native-safe-area-context 95ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/react-native-screens 61ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@react-navigation%2fnative-stack 124ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@shopify%2fflash-list 147ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@babel%2fruntime 92ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/apisauce 2ms (cache hit)
npm http fetch GET 200 https://registry.npmjs.org/date-fns 74ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/expo 133ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/expo-application 59ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/expo-build-properties 60ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/expo-font 67ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/expo-linking 56ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/expo-localization 67ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/expo-splash-screen 77ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/expo-status-bar 52ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/i18n-js 73ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/mobx 82ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/mobx-react-lite 73ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/mobx-state-tree 93ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/react-dom 311ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/react-native-drawer-layout 75ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/react-native-gesture-handler 89ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/react-native-reanimated 110ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/@babel%2fcore 90ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/react-native-web 58ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@babel%2fplugin-transform-arrow-functions 70ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@babel%2fplugin-transform-shorthand-properties 57ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@babel%2fplugin-transform-template-literals 74ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@babel%2fpreset-env 66ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/@testing-library%2freact-native 95ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/jest 50ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/node-notifier 56ms (cache revalidated)
npm http fetch GET 200 https://registry.npmjs.org/react-test-renderer 359ms (cache updated)
npm verb stack Error: unable to resolve dependency tree
npm verb stack     at #failPeerConflict (/Users/danielclarke/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1376:25)
npm verb stack     at #loadPeerSet (/Users/danielclarke/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1369:29)
npm verb stack     at async #loadPeerSet (/Users/danielclarke/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1310:11)
npm verb stack     at async #buildDepStep (/Users/danielclarke/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:917:11)
npm verb stack     at async Arborist.buildIdealTree (/Users/danielclarke/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:196:7)
npm verb stack     at async Promise.all (index 1)
npm verb stack     at async Arborist.reify (/Users/danielclarke/.nvm/versions/node/v20.9.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:159:5)
npm verb stack     at async Install.exec (/Users/danielclarke/.nvm/versions/node/v20.9.0/lib/node_modules/npm/lib/commands/install.js:151:5)
npm verb stack     at async module.exports (/Users/danielclarke/.nvm/versions/node/v20.9.0/lib/node_modules/npm/lib/cli-entry.js:61:5)
npm verb cwd /Users/danielclarke/Documents/Projects/React Learn/PizzaApp
npm verb Darwin 23.6.0
npm verb node v20.9.0
npm verb npm  v10.1.0
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.1
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.1
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! /Users/danielclarke/.npm/_logs/2024-09-04T10_13_28_423Z-eresolve-report.txt
npm verb exit 1
npm verb unfinished npm timer reify 1725444808502
npm verb unfinished npm timer reify:loadTrees 1725444808504
npm verb unfinished npm timer idealTree:buildDeps 1725444808511
npm verb unfinished npm timer idealTree:#root 1725444808512
npm verb code 1

npm ERR! A complete log of this run can be found in: /Users/danielclarke/.npm/_logs/2024-09-04T10_13_28_423Z-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   Unable to gather system and project details.
npm verb exit 1
npm verb code 1
quintao commented 1 week ago

I'm having the same issue as @danclarke --- just kicked off a new app here, clean client etc etc. No success.

quintao commented 1 week ago

I installed yarn, deleted the folder, and the command succeeded after that. So I think it was an issue with my setup.

manuelvdh commented 6 days ago

Yarn indeed also fixed my issues.

LordMrcS commented 18 hours ago

same here, on Node LTS:

The following error occurred:

npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: app@0.0.1 npm error Found: react@18.2.0 npm error node_modules/react npm error react@"18.2.0" from the root project npm error peer react@">=16.8.0" from @testing-library/react-native@12.7.2 npm error node_modules/@testing-library/react-native npm error dev @testing-library/react-native@"^12.5.2" from the root project npm error 1 more (react-native) npm error npm error Could not resolve dependency: npm error peer react@"^18.3.1" from react-test-renderer@18.3.1 npm error node_modules/react-test-renderer npm error peer react-test-renderer@">=16.8.0" from @testing-library/react-native@12.7.2 npm error node_modules/@testing-library/react-native npm error dev @testing-library/react-native@"^12.5.2" 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.

felipepalazzo commented 1 hour ago

same here. Using Node v20.9.0