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

Init fails due to dependency issues #47

Closed
cmasdf opened this issue Apr 16, 2021 · 2 comments · May be fixed by #58
Closed

Init fails due to dependency issues #47

cmasdf opened this issue Apr 16, 2021 · 2 comments · May be fixed by #58

Comments

@cmasdf
Copy link

cmasdf commented Apr 16, 2021

Description of the bug
Trying to initialise a new project fails due to missing dependencies.


⠋ Installing Vue Native devDependencies
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: <projectName>@0.0.1
npm ERR! Found: [email protected]
npm ERR! node_modules/react-native
npm ERR!   react-native@"0.63.4" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.59.0" from [email protected]
npm ERR! node_modules/vue-native-scripts
npm ERR!   dev vue-native-scripts@"*" 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/<username>/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
✔ Installed Vue Native devDependencies

To Reproduce
Steps to reproduce the behavior:

  1. follow steps according to the documentation for installation without expo
  2. execute the following command according to Step 1
    vue-native init <projectName> --no-expo
    

What I expected
Succeeding initialisation of a new project

Screenshots
not applicable

Did I use vue-native-cli to create the project?
Yes/No

Am I using Expo?
Yes/No

Development platform (please complete the following information):

  • OS: macOS 11.2.3
  • Shell/terminal: zsh 5.8 (x86_64-apple-darwin20.0)

The device on which I run my Vue Native app

  • Device: not applicable
  • OS: not applicable

Additional context
npm 7.10.0
node v14.16.0
vue-native-cli 0.2.0
react-native-cli 2.0.1


@RishabhKarnad
Copy link
Contributor

RishabhKarnad commented Apr 19, 2021

Please use npm v6 to resolve the issue. Installing yarn before running vue-native init should also resolve this.

@cmasdf
Copy link
Author

cmasdf commented Apr 19, 2021

Thx - downgrading solved it!

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

Successfully merging a pull request may close this issue.

2 participants