Apparently pushd and popd are not available in the shell used by exec on
all platforms.
This commit is contained in:
parent
7155ff0b91
commit
6cbca55bb1
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user