Open danclarke opened 4 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?
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?
Yeah you can add --debug
You can also pass --install-deps=false so that it just copies the boilerplate then you can manually install
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
@danclarke Thanks, that's interesting will have to debug it. Not an issue with yarn at the moment
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.
@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
I'm having the same issue as @danclarke --- just kicked off a new app here, clean client etc etc. No success.
I installed yarn, deleted the folder, and the command succeeded after that. So I think it was an issue with my setup.
Yarn indeed also fixed my issues.
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.
same here. Using Node v20.9.0
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:
Ignite version
9.8.2
Additional info