quick fix for NODE_ENV which affects npm install/prune calls

This commit is contained in:
oleg 2015-07-28 23:48:32 +03:00
parent 2f0c87ceac
commit 5d3b97c64b

View File

@ -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