Skip to content

Commit aee11c0

Browse files
author
Martin Konicek
committed
Revert "Dont call npm before node is available"
This reverts commit 7ecb693. This breaks Xcode build, see discussion on #5156
1 parent c56976a commit aee11c0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packager/react-native-xcode.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ cd ..
2929
set -x
3030
DEST=$CONFIGURATION_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH
3131

32+
# npm global install path may be a non-standard location
33+
PATH="$(npm prefix -g)/bin:$PATH"
34+
3235
# Define NVM_DIR and source the nvm.sh setup script
3336
[ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
3437

@@ -43,9 +46,6 @@ if [[ -x "$HOME/.nodenv/bin/nodenv" ]]; then
4346
eval "$($HOME/.nodenv/bin/nodenv init -)"
4447
fi
4548

46-
# npm global install path may be a non-standard location
47-
PATH="$(npm prefix -g)/bin:$PATH"
48-
4949
react-native bundle \
5050
--entry-file index.ios.js \
5151
--platform ios \

0 commit comments

Comments
 (0)