react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

Error:Execution failed for task ':app:recordFilesBeforeBundleCommandDebug'. > A problem occurred starting process 'command 'node''

Open tianweicc opened this issue 9 years ago • 9 comments

android gradld upgrade to 4.1 after the report d

tianweicc avatar Oct 26 '17 08:10 tianweicc

i had same problem in androidstudio3.0,but I run "./gradlew build" is successful in Cammand,why?

linjson avatar Oct 27 '17 06:10 linjson

Hi @tianweicc and thanks for reaching us. Please follow the issue template so we could be able to help you with your issue.

ruslan-bikkinin avatar Oct 27 '17 06:10 ruslan-bikkinin

i had resolved :

it seem can't find 'node' path,I fix "*nodeExecutableAndArgs"->"/usr/local/bin/node" then it is work

linjson avatar Oct 27 '17 07:10 linjson

Glad to here that @linjson! I am closing this issue for now. @tianweicc if solution suggested by @linjson will not help you please feel free to reopen it.

ruslan-bikkinin avatar Oct 27 '17 08:10 ruslan-bikkinin

@linjson Hi, I'm getting the same errors...

I don't understand what you mean by it seem can't find 'node' path,I fix "*nodeExecutableAndArgs"->"/usr/local/bin/node" then it is work

Can you please explain how you fixed this issue? Thank you,

fhadsheikh avatar Nov 01 '17 17:11 fhadsheikh

@fhad-getmaple to find "react-native-code-push/android/codepush.gradle" this file

linjson avatar Nov 02 '17 04:11 linjson

@linjson How did you resolve this issue?

Biplab2014 avatar Nov 07 '17 05:11 Biplab2014

find "react-native-code-push/android/codepush.gradle" file, change def nodeExecutableAndArgs = config.nodeExecutableAndArgs ?: ["node"] to def nodeExecutableAndArgs = config.nodeExecutableAndArgs ?: ["/usr/local/bin/node"]

It works for me!

suxindao avatar Nov 10 '17 07:11 suxindao

Just for reference, there's a workaround that can be found here: https://github.com/facebook/react-native/issues/6875#issuecomment-293220175

I got this issue when upgrading to Android Studio 3, using api 26. Similar issue to https://github.com/Microsoft/react-native-code-push/issues/1069

jebora avatar Nov 22 '17 21:11 jebora