This message was deleted.
# community-support
s
This message was deleted.
j
Gradle 6.7.1
Copy code
minSdkVersion = 21
        compileSdkVersion = 31
        targetSdkVersion = 31
        ndkVersion = "20.1.5948944"
        kotlinVersion = "1.4.32"
        kotlin_version = '1.7.0'
        dokka_version = '0.10.1'
        appCompatVersion = "1.1.0"      // Or higher.  Required for new AndroidX compatibility.
        googlePlayServicesLocationVersion = "19.0.1"  // Or higher.
ReactNativeRunning '[node, -e, console.log(require('react-native/cli').bin);]' command failed. FAILURE: Build failed with an exception. * Where: Script '/Users/varmabhupatiraju/Joshi/MyProjects/reactnativecli/crst/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 189 * What went wrong: A problem occurred evaluating script.
Cannot run program "node" (in directory "/Users/varmabhupatiraju/Joshi/MyProjects/reactnativecli/crst/android"): error=2, No such file or directory
* Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Exception is: org.gradle.api.GradleScriptException: A problem occurred evaluating script. at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56) Caused by: java.io.IOException: Cannot run program "node" (in directory "/Users/varmabhupatiraju/Joshi/MyProjects/reactnativecli/crst/android"): error=2, No such file or directory at java_lang_Runtime$exec$0.call(Unknown Source) at ReactNativeModules.getCommandOutput(/Users/varmabhupatiraju/Joshi/MyProjects/reactnativecli/crst/node_modules/@react-native-community/cli-platform-android/native_modules.gradle:189) at ReactNativeModules$getCommandOutput$0.callCurrent(Unknown Source) at ReactNativeModules.getReactNativeConfig(/Users/varmabhupatiraju/Joshi/MyProjects/reactnativecli/crst/node_modules/@react-native-community/cli-platform-android/native_modules.gradle:233) at ReactNativeModules$getReactNativeConfig.callCurrent(Unknown Source) at ReactNativeModules.<init>(/Users/varmabhupatiraju/Joshi/MyProjects/reactnativecli/crst/node_modules/@react-native-community/cli-platform-android/native_modules.gradle:84) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at native_modules_7i9ilp1oxc33pac3tz23bifq1.run(/Users/varmabhupatiraju/Joshi/MyProjects/reactnativecli/crst/node_modules/@react-native-community/cli-platform-android/native_modules.gradle:287) at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91) ... 159 more Caused by: java.io.IOException: error=2, No such file or directory ... 170 more * Get more help at https://help.gradle.org BUILD FAILED in 173ms
v
That has nothing to do with Gradle.
Some plugin or code in your build script or whatever, requires that
node
is available in the
PATH
which it is not
So it fails when trying to execute
node