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

vue-native init fails #49

Open Aymkdn opened 3 years ago

Aymkdn commented 3 years ago

Hi,

I'm a bit confused about the errors I get when I try vue-native init:

PS D:\> vue-native init android_tv_app
Using globally installed expo-cli 4.4.4

prompt: Directory android_tv_app is invalid. Do you want to continue?:  (no) y
Creating Vue Native project android_tv_app

- Creating project with react-native-cli
'react-native' is not recognized as an internal command
√ Created project with react-native-cli

(node:18892) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, chdir 'D:\' -> 'android_tv_app'

I'm using Windows 10. I have the same error whatever I try npm 7 or npm 6. There is no folder android_tv_app yet and I tried to create the folder but same issue. I didn't install react-native-cli but I installed expo-cli.

Aymkdn commented 3 years ago

When I install react-native-cli then it works… In the documentation it says either expo-cli or react-native-cli

Aymkdn commented 3 years ago

Looks like the _ in project's name are not allowed… It's probably something you need to write in the documentation or to make the message "is invalid" more clear!

Aymkdn commented 3 years ago

Also you need to install yarn otherwise you'll get errors :-(