diff --git a/react-native-xcode.sh b/react-native-xcode.sh index b655222f..89886261 100755 --- a/react-native-xcode.sh +++ b/react-native-xcode.sh @@ -29,9 +29,6 @@ cd .. set -x DEST=$CONFIGURATION_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH -# npm global install path may be a non-standard location -PATH="$(npm prefix -g)/bin:$PATH" - # Define NVM_DIR and source the nvm.sh setup script [ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm" @@ -46,6 +43,9 @@ if [[ -x "$HOME/.nodenv/bin/nodenv" ]]; then eval "$($HOME/.nodenv/bin/nodenv init -)" fi +# npm global install path may be a non-standard location +PATH="$(npm prefix -g)/bin:$PATH" + react-native bundle \ --entry-file index.ios.js \ --platform ios \