From 5d3b97c64be6772ef1062b39cb0d871ab1cf260a Mon Sep 17 00:00:00 2001 From: oleg Date: Tue, 28 Jul 2015 23:48:32 +0300 Subject: [PATCH] quick fix for NODE_ENV which affects npm install/prune calls --- lib/executor/local.js | 6 ++++++ 1 file changed, 6 insertions(+) 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