Skip to content

Commit

Permalink
Revert "Dont call npm before node is available"
Browse files Browse the repository at this point in the history
This reverts commit 7ecb693.
  • Loading branch information
Martin Konicek committed Jan 21, 2016
1 parent 2f1ed20 commit 6f5acbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packager/react-native-xcode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ 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"

Expand All @@ -43,9 +46,6 @@ 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 \
Expand Down

0 comments on commit 6f5acbd

Please sign in to comment.