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

痞子三分冷 提交于 2020-01-14 07:31:47

问题


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

回答1:


This is because of code style for jshint errors in your HTML files. Use IDE which supports HTML files, and shows errors in HTML if any. Sometimes, errors in the HTML will still work in browser, but build will fail.




回答2:


Just kill node process and repeat the build process.




回答3:


I solved the problem in my Putting

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

In App build.gradle




回答4:


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 thew 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.


来源:https://stackoverflow.com/questions/51056207/process-command-node-finished-with-non-zero-exit-value-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!