diff --git a/index.js b/index.js index 289814d12..ad100e1b6 100644 --- a/index.js +++ b/index.js @@ -566,6 +566,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' }); }