From f52615c0f7cd0e76fe1970e8071d414496960b08 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Wed, 13 Dec 2017 13:08:05 +0000 Subject: [PATCH] fix: only use fork if node>4 --- lib/monitor/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/monitor/run.js b/lib/monitor/run.js index 48b898f5..7b67b705 100644 --- a/lib/monitor/run.js +++ b/lib/monitor/run.js @@ -83,7 +83,7 @@ function run(options) { }); } - if (executable === 'node') { + if (executable === 'node' && utils.version.major > 4) { var forkArgs = cmd.args.slice(1); var env = utils.merge(options.execOptions.env, process.env); stdio.push('ipc');