Skip to content
Advertisement

How to resolve the build error on react-native?

I’m trying to make a build environment to make an android app but I haven’t been able to succeed to build the project. The build log is as follows,

Starting Gradle Daemon...
Gradle Daemon started in 5 s 673 ms
:ReactNative:Running '[node, -e, console.log(require('react-native/cli').bin);]' command failed.

FAILURE: Build failed with an exception.

* Where:
Script 'C:WorkSpaceMyProjectnode_modules@react-native-communitycli-platform-androidnative_modules.gradle' line: 179

* What went wrong:
A problem occurred evaluating script.
> Cannot run program "node" (in directory "C:WorkSpaceMyProjectandroid"): CreateProcess error=2, �w�肳�ꂽ�t�@�C����������܂���B

It looks exactly same as the link below and I did the same thing but I can’t resolve the problem and the log that it makes is always the same.

https://forums.expo.io/t/android-cannot-run-program-node-error-2-no-such-file-or-directory/37693

Advertisement

Answer

reinstall node. delete node modules and clean and run the project again.

I can’t comment so i answered.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement