I created my project using Expo and ejected into using ExpoKit. I ran pod install and npm install to make sure
I have everything. However, after I try to build with xcode, the following error showed up and failed my build:
Please install expo-cli command
Command PhaseScriptExecution failed with a nonzero exit code
I am pretty sure I have expo-cli installed. I am suspecting it is the path in the xcode that cannot find expo-cli. How should I fix this? I use npm to manage dependencies. Thank you so much!
Since people in the forum mentioned that this is fixed with ios release 2.8.3, I am currently on 2.8.3 but still experiencing this issue.
I tried to eliminate the problem from my code, so I built a new project and directly eject from that. So, I ran:
The build still failed, with the exam same error message. I checked that the iOS release is at 2.8.3, and Expo SDK is at 30.0.1. I am using xcode 10 and build with Legacy Build.
Any suggestion or idea is mostly appreciated!!
Hi, I got the same error and made this workaround.
I’m using nvm, so
npm i -g explo-cli actually installs to a specific path like:
I hacked the failing script as follows:
set -eo pipefail
if [ -x "$(command -v expo)" ]; then
elif [ -x "$(command -v exp)" ]; then
echo "Please install expo-cli command"
Hey, it not nice, but gets the work done.
Hope this helps
Hi, sorry for this inconvenience We’re looking into this and will reach out to you once we find universal solution and fix it.
For now, I can confirm that what @ramirogm_palomonte wrote above is correct and should be enough to workaround this problem.
Thank you so much! I really appreciate your hard work!
Thank you! I will try this.
Hi. I had several issues with #30, so I went back to #29 and now it’s
We’ve just released a new version of ExpoKit (v2.8.4) which solves this issue. See my other comment to get more details on this.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.