From f0f7dacb6752aca27b5cc05b1a1fc660cfd4abe0 Mon Sep 17 00:00:00 2001 From: Mudit Gupta Date: Sat, 8 Sep 2018 11:22:37 +0530 Subject: [PATCH] Added 'node' to a command Added node in-front of the command to being executed by childprocess.exec(). This will make sure that windows will execute the js file rather than opening it in a text editor. --- lib/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app.js b/lib/app.js index d22d2715..9b19455c 100644 --- a/lib/app.js +++ b/lib/app.js @@ -214,7 +214,7 @@ class App { // Launch const execOpts = {maxBuffer: 1024 * 1024 * 10}; - this.testrpcProcess = childprocess.exec(`${command} ${options}`, execOpts, (err, stdout, stderr) => { + this.testrpcProcess = childprocess.exec(`node ${command} ${options}`, execOpts, (err, stdout, stderr) => { if (err) { if (stdout) this.log(`testRpc stdout:\n${stdout}`); if (stderr) this.log(`testRpc stderr:\n${stderr}`);