The iOS version works fine, but running Android Studio on my Mac I get the following Gradle Build error (paraphrased):
:ReactNative:Running ‘[node, -e, console.log(require(‘react-native/cli’).bin);]’ command failed.
Script ‘/Users/…/Desktop/…/node_modules/@react-native-community/cli-platform-android/native_modules.gradle’ line: 154
- What went wrong:
A problem occurred evaluating script.
> Cannot run program “node”: error=2, No such file or directory
Caused by: java.io.IOException: Cannot run program “node”: error=2, No such file or directory
I am very new to coding, and the first time I tried to fix this I broke the iOS version for 4 days. I have already tried (to the best of my abilities):
Following the React Native development set-up: https://reactnative.dev/docs/environment-setup
Following this advice about [renaming?] the node path: https://stackoverflow.com/a/54007652
Following this advice about symlink: https://stackoverflow.com/a/52779097
Ran brew install node. Message: node 14.2.0 is already installed, it’s just not linked. Tried to run brew link --overwrite node, error /usr/local/share/doc/node is not writable.
I am considering uninstalling and reinstalling node, but I am very afraid about destroying things again. Any step-by-step advice would be greatly appreciated, thank you!!
Current mood: Both Donny and Walter