diff --git a/lib/executor/local.js b/lib/executor/local.js index 9696fbc..cfd18be 100644 --- a/lib/executor/local.js +++ b/lib/executor/local.js @@ -140,6 +140,12 @@ Executor.prototype._runStep = function(params, callback) { self.emit('data', 'stderr: ' + String(data)); }); + // TODO: should be fixed properly, currently it's quick fix for + // NODE_ENV which affects npm install/prune calls + params.options = params.options || {}; + params.options.env = params.options.env || process.env; + delete params.options.env.NODE_ENV; + command.run(params, this.slot()) }, callback