create-react-native-dapp
create-react-native-dapp copied to clipboard
Unable to successfully create project
-
I'm submitting a ...
- [x] bug report
- [ ] feature request
- [ ] question about the decisions made in the repository
- [ ] question about how to use this project
-
Summary
- Followed the instructions contained within the
To get started
section - Executed
npx create-react-native-dapp
- Enter app name & URI scheme (sticking to the defaults)
- After getting instructions on how to run project error message appears immediately after
npm run web
instruction
- Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)
Error message is shown below
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"16.13.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"17.0.1" from [email protected]
npm ERR! node_modules/react-test-renderer
npm ERR! dev react-test-renderer@"17.0.1" 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/mos/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/mos/.npm/_logs/2021-11-03T17_07_35_566Z-debug.log
node:child_process:707
err = new Error(msg);
^
Error: Command failed: npm i
at checkExecSyncError (node:child_process:707:11)
at Object.execSync (node:child_process:744:15)
at shouldInstall (/Users/mos/.npm/_npx/1064147bb9e7ae50/node_modules/create-react-native-dapp/build/main/buidler/index.js:534:48)
at Object.create (/Users/mos/.npm/_npx/1064147bb9e7ae50/node_modules/create-react-native-dapp/build/main/buidler/index.js:777:5)
at processTicksAndRejections (node:internal/process/task_queues:94:5)
at async /Users/mos/.npm/_npx/1064147bb9e7ae50/node_modules/create-react-native-dapp/build/main/cli/index.js:119:33 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 67961,
stdout: null,
stderr: null
}
Hey @MarkOSullivan94, thanks for raising. May I check:
- the behaviour you're seeing is any different if you use
yarn web
? - the
npx create-react-native-dapp
command completed successfully, and wasn't terminated early?
Hey @cawfree thanks for the reply!
The npx create-react-native-dapp
command didn't complete successfully and was terminated early because of the error above, I didn't execute npm run web
sorry for confusion!
See screenshot below

Same issue
@cawfree @simibac would love some help on this guys. Awesome project
Found the problem. Default installer uses Yarn by default and for some reason doesn't work with npm. Just install Yarn and it will work @MarkOSullivan94
Thanks for the reply @sergey-king!
Should I close this or should I keep it open until it works for npm?