Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React-Native env: node: No such file or directory

I'm getting the following build error when compiling my react-native project in Xcode env: node: No such file or directory

Not sure whats causing it? Node v8.9.4 React-Native v0.50.4 NPM v5.6.0 And I'm using nvm

like image 301
Almog Avatar asked Nov 27 '22 20:11

Almog


1 Answers

if you are using nvm do

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

this will link current nvm to your usr local and next time Xcode will find the correct node path and version

like image 64
Luis Avatar answered Dec 09 '22 16:12

Luis