I have a prototype ready to go and the project is jammed with build:
error: Can\'t find \'node\' binary to build React Native bundle If you have non
Open Xcode, then choose "Preferences..." from the Xcode menu.
Go to the Locations panel and install the tools by selecting the most recent version in the Command Line Tools dropdown.
select command line tools like as this image
The solution for me is to set a default version of node
with nvm
in your profile. This works for bash or zsh:
Add this to your .zshrc
or .bashrc
# default node version for nvm
nvm use 8.9.3
Be sure to change it to the version you want when starting a new terminal.
I found one solution
First find your current node, in shell
which node
then copy your node url to
export NODE_BINARY=[your node path]
../node_modules/react-native/packager/react-native-xcode.sh to node_modules/react-native/scripts/react-native-xcode.sh
@brunocascio solution on the comment is simpler and less invasive, create a symlink to node, on command line:
ln -s $(which node) /usr/local/bin/node