Upon typing the command "expo credentials:manager -p android" in terminal, I get:
'expo credentials:manager is not supported in the local CLI, please use eas credentials instead'
However, I know i recently uninstalled EAS so I cannot use eas credentials.
Is there any way to still use expo credentials:manager -p android? Also, why is it not supported?
I try to publish my app to App Store by using eas cli: eas build --platform ios . After I login using my Apple account, it run about 2 minute and show "Error: Cannot copy a socket file: /Users/tienminhnguyen/Library/Developer/Xcode/GPUToolsAgent.sock".
My app use expo-ads-admob and react-native-webview. It run fine in Expo Go app.
Are you using "sudo" in the CLI when running your command? I was getting this error until I removed "sudo". Hope it helps you.
I setup the CI/CD on gitlab and I want to publish my app on expo, how can I do this? below is my current script for publish, it is completing without any errors but there is no updated build on expo, I think it is unable to login with token, is there any way I can publish the build using token?
script:
- apk add --no-cache bash
- npx expo login -t $EXPO_TOKEN
- npx expo publish --non-interactive
Any help appreciated !
Thanks
Asif
It's as easy as - EXPO_TOKEN=$EXPO_TOKEN expo publish --non-interactive
Currently, I'm using expo-cli#2.6.13.
I want to create a script that in every PR merged into the devel branch do a build for Android into my expo account.
To do that I'm using a bitbucket pipeline with just these commands:
expo login -u $EXPO_USER -p $EXPO_PASSWORD
expo build:android --non-interactive
However, the pipeline is never finishing... It's displaying this message:
Success. You are now logged in as myUsername.
And then nothing more... It looks like the second command line is not executed.
I tried to add the --non-interactive also in the first line, but neither works, it's happening just the same.
Does anybody have an idea about how to do it correctly?
Thank you 😊
No idea why... But updating the bitbucket pipeline node version from 8.10 to 10.10 fix this problem...
I just started learning react native and I'm stuck at the beginning.
I installed react native with npm install -g create-react-native-app, but when i try to create app with create-react-native-app it just says:
Input is required, but expo is in non-interactive mode. Required
input:
> Choose a template:
are you using git bash? try to use normal cmd to create the project
you can't run the CLI in 'interactive mode' if you are using Git Bash, instead, you can use cmd, but if you insist on using Git Bash then you need to pass 2 arguments: name and template . so instead of
expo init <project-name>
you'd actually pass:
expo init <project-name> --template <one-of-the-predefined-templates> --name <AppName>
for example, expo init facebook-clone --template blank --name FacebookClone
the template argument defines how much boilerplate the project is initiated with the name argument defines the app name (as shown in the home screen or even in Expo itself)
Use cmd or another TTY command-line tool. Don't use git bash - it is not TTY.
expo --help
Usage: expo [options] [command]
Options:
-V, --version output the version number
-o, --output [format] Output format. pretty (default), raw
--non-interactive Fail, if an interactive prompt would be required to continue. Enabled by default if stdin is not a TTY.
In that case you can all commands mentioned above:
expo init my-new-project
or do expo login first
you can use the following command.
expo init youappfolder --template blank
Hope this helps.
Use this command if you are using gitbash instead of cmd or powershell:
expo init my-app --template blank --name myApp
By default expo uses yarn to install packages.
If you want to use npm instead, use the following command:
expo init my-app --template blank --name myApp --npm
you must determine what the template you neeed
so you can run this
expo init projectName --template blank
or
expo init projectName --template tabs
Use cmd or another TTY command-line tool. Don't use git bash - it is not TTY.
expo --help
Usage: expo [options] [command]
Options:
-V, --version output the version number
-o, --output [format] Output format. pretty (default), raw
--non-interactive Fail, if an interactive prompt would
be required to continue. Enabled by default if stdin is not a TTY.
In that case you can all commands mentioned above:
expo init my-new-project
or do expo login first
Use normal CMD(Command Prompt) instead of using git-bash or some other terminals. It worked for me.
You can supply your credentials (expo website account credentials) by:
expo login -u YOUR-USERNAME-OR-EMAIL -p YOUR-PASSWORD
If you don't have one, go get one at : https://expo.io/
If you just starting learning React Native, and its necessary to run on Expo client on your mobile, you create app by:
react-native init ptojectName
This type of projects can run on simulator (android/ios) or on real device.
To allow it to work in git bash, just alias the expo command in your .bashrc or .profile to use gitbash's winpty, made for just this sort of thing:
In your .profile or .bashrc:
alias expo='winpty expo.cmd '
I had the same issue using gitbash, like it defaults in non-interactive mode you have to specify every arguments:
expo init myprojectname --template blank
Where "myprojectname" is the name you want to give
template is the start options expo init gives which are blank, tabs or bare-minimum
The issue is when you are using Git Bash, I solved it by using the in-built terminal on VS-code
If you are not in interactive mode, then you can specify template and workflow as shown below:
expo init demoProject --template blank --workflow managed
Hope this helps.
You can solve it by
1. Using cmd or PowerShell instead of git bash
or
2. Use git as an integrated terminal if you are using vscode as your text editor
My suggestion to you: start again. Install expo, then run:
expo init my-new-project
cd my-new-project
expo start
See here for details:
https://expo.io/learn
Your life will be much easier. Then, when you gain experience, you can start playing without it.
$ expo init --name non-interactive --template blank managed Awesome_project
I know this is a very old question but I had the same
Issues lately but all I did was to just use my windows command prompt instead of Gitbash.