Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to successfully create project #21

Open
1 of 4 tasks
MarkOSullivan94 opened this issue Nov 3, 2021 · 6 comments
Open
1 of 4 tasks

Unable to successfully create project #21

MarkOSullivan94 opened this issue Nov 3, 2021 · 6 comments

Comments

@MarkOSullivan94
Copy link

  • I'm submitting a ...

    • 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
}
@cawfree
Copy link
Owner

cawfree commented Nov 4, 2021

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?

@MarkOSullivan94
Copy link
Author

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

@sergey-king
Copy link

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

@sergey-king
Copy link

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

@sergey-king
Copy link

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

@MarkOSullivan94
Copy link
Author

MarkOSullivan94 commented Dec 8, 2021

Thanks for the reply @sergey-king!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants