-
Notifications
You must be signed in to change notification settings - Fork 24k
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
Generalize node search logic #30906
Generalize node search logic #30906
Conversation
Base commit: f9a7d3a |
Base commit: f9a7d3a |
Why not just run |
@EdwardDrapkin This pull request fixes issues that occurred when Node was installed with |
Hard-coding a specific fix for nvm won't solve issues for other more esoteric options, e.g. nvs or graalvm. Why not just run |
@EdwardDrapkin The In a nutshell: It is easily reproducible:
I agree that there should be a better solution for Xcode integrations, and that current Xcode-related scripts feel rather hacky. But I personally don't see any better solution just yet. You'd have to do some form of the lookup dance anyway. |
Note: make sure to add |
Fixed! |
Out in RN 0.64! |
Ah gotcha! |
It would be worth adding |
# LICENSE file in the root directory of this source tree. | ||
|
||
set -e | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes react-native-community/upgrade-support#138 (comment)
unset npm_config_prefix | |
@pontusab |
@hramos Hey I notice this is now on main added by you, should we close this then? |
So why aren't we just doing :
or something like that. |
As far as I can tell, these changes have been merged. Closing the PR. Thanks for the contribution! |
Summary
This PR fixes the
node
path issue in current RC0.64.0-rc.3
react-native-community/releases#214 (comment)Basically extracting the logic to find the correct node path and reusing it in the
generate-specs.sh
file.Changelog
[Internal] [Fixed] - Fix node path
Test Plan
Build the app in Xcode and it should build successfully using with and without nvm.