GeekyAnts / vue-native-cli

Write Native Mobile Apps using Vue. Vue Native is a wrapper around React Native APIs
92 stars 21 forks source link

Init fails due to dependency issues #47

Closed cmasdf closed 3 years ago

cmasdf commented 3 years ago

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: react-native@0.63.4
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 vue-native-scripts@0.2.0
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):

The device on which I run my Vue Native app

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


RishabhKarnad commented 3 years ago

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

cmasdf commented 3 years ago

Thx - downgrading solved it!