diff --git a/packages/react-native/scripts/xcode/with-environment.sh b/packages/react-native/scripts/xcode/with-environment.sh index f36190e6b146db..c6bd62c87fc811 100755 --- a/packages/react-native/scripts/xcode/with-environment.sh +++ b/packages/react-native/scripts/xcode/with-environment.sh @@ -13,7 +13,7 @@ # ./with-environment.sh command # Start with a default -NODE_BINARY=$(command -v node) +NODE_BINARY=$(command -v node || echo "") export NODE_BINARY # Override the default with the global environment