React native: Fix "line 2: node: command not found Using Node.js" when building with xcode

I experienced this issue when I was building my project via xcode. In fact it added another line underneath that says

PhaseScriptExecution failed with a nonzero exit code

I built my project via terminal and it worked perfectly fine. I realised I installed node via nvm and xcode was not seeing node PATH.

To fix this, I did this from the terminal

ln -s $(which node) /usr/local/bin/node

And that fixes it.

Cheers!!!

If you enjoyed this article, please Like, share and drop your comments .

You can follow me on twitter: @talk2dera