-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't find 'node' binary to build React Native bundle #22918
Comments
I was able to workaround the issue using this answer from StackOverflow
|
Hey, this looks like an environment issue. 'Can't find node binary' is triggered when the Node.js installation is invalid. Try checking your path and the workaround mentioned. If you think this is an actual issue on RN side, provide us with a minimal repro and we'll have a look again. |
For the people coming across this error that have added node args via the NODE_BINARY env variable (e.g. (as of #22423) |
I actually semi-redact my previous comment. Although it works fine when there's only one person working on the project, it causes issues if more than one person wants to use the same xcode file. Also breaks things like appcenter.ms which has no knowledge of your local file structure! |
@MaffooBristol sorry to disappoint you, but your proposed solution (xcode build phase - /usr/local/opt/node@12/bin/node) did not have any effect on my freshly created app, metro could not find a node binary; only creating the symbolic link proposed by @tristankenney eventually made it work. xcode 11.3.1 |
Environment
Environment:
OS: macOS 10.14.1
Node: 8.11.2
Yarn: Not Found
npm: 5.6.0
Watchman: 4.9.0
react-native: 0.55.4,
Xcode: Xcode 10.1 Build version 10B61
Android Studio: 3.2 AI-181.5540.7.32.5056338
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
Description
I cant build my app on iOS anymore,
The text was updated successfully, but these errors were encountered: