I starting a new project and uses the commands:
- expo init image-feed —yarn
- Cd image-feed
3 yarn start - OK
- yarn start ios - OK
- yarn start Android and I get this error: (can some one please help)?
$ expo start Android
Starting project at /Users/rlousada/Documents/Developer/react-native/Fullstack-react-native-book/image-feed/Android
Can’t read JSON file: /Users/rlousada/Documents/Developer/react-native/Fullstack-react-native-book/image-feed/Android/package.json
└─ Cause: Error: ENOENT: no such file or directory, open ‘/Users/rlousada/Documents/Developer/react-native/Fullstack-react-native-book/image-feed/Android/package.json’
Cannot read property ‘platforms’ of null
Set EXPO_DEBUG=true in your env to view the stack trace.
What are you trying to do with these commands? Open up your project in the respective OS simulator?
I was starting the EXPO project in each of the simulators. The project is not ejected so i don’t have the ios and the Android directories. And from what i have read this should be possible?
Thanks again for your help.
When prompted by the CLI, you chose
If you choose to go the managed route, then the Expo CLI doesn’t create ios or android folders.
What version of the CLI are you using? I just tried reproducing and don’t receive this error when running
No, i used blank, should i use bare-minimum? expo cli is v 2.14
You can read about the two separate workflows here. Depends on your needs, but if you want to continue with the project you’ve already started in the managed workflow, then there are no android/ios folders, all you need to do is run
expo start and then, when prompted, press either
i to launch the ios sim, or
a to launch the android sim.
Let me know if that clears it up!
Yes it does, thank you so much @charliecruzan
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.