Browse files Support Homebrew-installed nodenv

As well as nvm.

Build React Native iOS app with Release configuration and run the script using `node` command which is installed through Homebrew-installed `nodenv` and `node-build`.


[IOS] [ENHANCEMENT] [scripts/] - Support Homebrew-installed nodenv
Closes #19509

Differential Revision: D8243181

Pulled By: hramos

fbshipit-source-id: fbd75f377f4aebf89ce35b96a47c59238e62e9ce
  • Loading branch information...
ikesyo authored and facebook-github-bot committed Jun 1, 2018
1 parent 83c990b commit 0964135a178b459e06b44a49a4ecb0dd6c5bec9b
Showing with 2 additions and 0 deletions.
  1. +2 −0 scripts/
@@ -62,6 +62,8 @@ fi
# Set up the nodenv node version manager if present
if [[ -x "$HOME/.nodenv/bin/nodenv" ]]; then
eval "$("$HOME/.nodenv/bin/nodenv" init -)"
elif [[ -x "$(command -v brew)" && -x "$(brew --prefix nodenv)/bin/nodenv" ]]; then
eval "$("$(brew --prefix nodenv)/bin/nodenv" init -)"
[ -z "$NODE_BINARY" ] && export NODE_BINARY="node"

0 comments on commit 0964135

Please sign in to comment.