From 6cbca55bb1b536c3fa1ad310c65b17c76bb84a57 Mon Sep 17 00:00:00 2001 From: Chris Kleeschulte Date: Wed, 27 Sep 2017 19:22:58 -0400 Subject: [PATCH] Apparently pushd and popd are not available in the shell used by exec on all platforms. --- bitcore-node/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcore-node/index.js b/bitcore-node/index.js index 42fdb47..3a046ce 100644 --- a/bitcore-node/index.js +++ b/bitcore-node/index.js @@ -23,8 +23,8 @@ InsightUI.prototype.start = function(callback) { pkg.insightConfig.routePrefix = self.routePrefix; fs.writeFileSync(__dirname + '/../package.json', JSON.stringify(pkg, null, 2)); - exec('pushd ' + __dirname + '/../;' + - ' npm run install-and-build; popd', function(err) { + exec('cd ' + __dirname + '/../;' + + ' npm run install-and-build', function(err) { if (err) { return callback(err); }