diff --git a/index.js b/index.js index 5380a4a58..649a9dd10 100644 --- a/index.js +++ b/index.js @@ -569,6 +569,8 @@ Command.prototype.executeSubCommand = function(argv, args, unknown) { } } else { args.unshift(bin); + // add executable arguments to spawn + args = (process.execArgv || []).concat(args); proc = spawn(process.execPath, args, { stdio: 'inherit' }); }