React-native-code-push: Error:Execution failed for task ':app:recordFilesBeforeBundleCommandDebug'. > A problem occurred starting process 'command 'node''

Created on 26 Oct 2017  路  9Comments  路  Source: microsoft/react-native-code-push

android gradld upgrade to 4.1 after the report d

Most helpful comment

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!

All 9 comments

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

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

i had resolved :

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

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.

@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,

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

@linjson How did you resolve this issue?

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!

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Adr1ann picture Adr1ann  路  3Comments

cgerikj picture cgerikj  路  3Comments

SudoPlz picture SudoPlz  路  4Comments

ninjz picture ninjz  路  4Comments

vira-khdr picture vira-khdr  路  3Comments