create-react-native-dapp icon indicating copy to clipboard operation
create-react-native-dapp copied to clipboard

Unable to successfully create project

Open MarkOSullivan94 opened this issue 3 years ago • 6 comments

  • 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

  1. Followed the instructions contained within the To get started section
  2. Executed npx create-react-native-dapp
  3. Enter app name & URI scheme (sticking to the defaults)
  4. 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
}

MarkOSullivan94 avatar Nov 03 '21 17:11 MarkOSullivan94

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?

cawfree avatar Nov 04 '21 10:11 cawfree

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

Screenshot 2021-11-04 at 22 10 54

MarkOSullivan94 avatar Nov 04 '21 21:11 MarkOSullivan94

Same issue Screen Shot 2021-11-21 at 11 12 41 AM

sergey-king avatar Nov 21 '21 16:11 sergey-king

@cawfree @simibac would love some help on this guys. Awesome project

sergey-king avatar Nov 21 '21 16:11 sergey-king

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

sergey-king avatar Nov 21 '21 20:11 sergey-king

Thanks for the reply @sergey-king!

Should I close this or should I keep it open until it works for npm?

MarkOSullivan94 avatar Dec 08 '21 11:12 MarkOSullivan94