nodejs not found

Tags
공식문서

nodejs not found

xcode로 빌드 시 nodejs가 없다는 에러가 뜨기도 한다.
notion image
Can't find the 'node' binary to build the React Native bundle. If you have a non-standard Node.js installation, select your project in Xcode, find 'Build Phases' - 'Bundle React Native code and images' and change NODE_BINARY to an absolute path to your node executable. You can find it by invoking 'which node' in the terminal.

해결 방법

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