Childprocess exec nodejs get error

September 4, 2015 619 views

i use child process to use another script in my project and when i run it in my PC it run ok. But in droplet it get error.
My code contain childProcess.

childProcess.execFile(binPath, childArgs2, function (err, stdout, stderr) {
 //do something

And error :

SyntaxError: Unexpected end of input
at Object.parse (native)
at /root/projostart/config/bootstrap.js:42:30
at ChildProcess.exithandler (child_process.js:758:5)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)

Thank you.

Be the first one to answer this question.