Skip to content

Commit f0f7dac

Browse files
authored
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.
1 parent a57b2f9 commit f0f7dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class App {
214214

215215
// Launch
216216
const execOpts = {maxBuffer: 1024 * 1024 * 10};
217-
this.testrpcProcess = childprocess.exec(`${command} ${options}`, execOpts, (err, stdout, stderr) => {
217+
this.testrpcProcess = childprocess.exec(`node ${command} ${options}`, execOpts, (err, stdout, stderr) => {
218218
if (err) {
219219
if (stdout) this.log(`testRpc stdout:\n${stdout}`);
220220
if (stderr) this.log(`testRpc stderr:\n${stderr}`);

0 commit comments

Comments
 (0)