Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Process 'command 'node'' finished with non-zero exit value 1

I tried to build jitsi meet based on react-native but it stucks in bundleReleaseJsAnd assets and then throw this error :

Process 'command 'node'' finished with non-zero exit value 1
like image 456
ali mardani Avatar asked Jun 27 '18 06:06

ali mardani


3 Answers

In my case I had error in React Native side, I fixed it and I was able to generate bundle

like image 69
Harshil Jasoliya Avatar answered Oct 15 '22 12:10

Harshil Jasoliya


I solved the problem in my Putting

project.ext.react = [
     entryFile: "index.js"
]

In App build.gradle

like image 2
Antonio Junior Avatar answered Oct 15 '22 12:10

Antonio Junior


Okay so to clarify Sumakh's answer -- this happened to me because I had a build error in my app's JavaScript code. Ergo the build step invoking node to build the runtime bundle threw an exception. To find the script error, there are a couple of options:

  • I ran eslint against my JS sources, which identified the error, then fixed it, and was off to the races.
  • After the fact, though, I realized that IntellJ (where I was editing the JS code) had been warning me about the syntax error (showing the red squiggly underline on the file in question)
  • If you have a pre-existing working runtime, you could also try running the current state of the JS code in your simulator, and it should throw an exception showing you where the bad code is.
like image 2
Tim Keating Avatar answered Oct 15 '22 12:10

Tim Keating