mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 17:05:51 +01:00
This commit is contained in:
@@ -41,11 +41,18 @@ function installAll() {
|
||||
} catch (e) {
|
||||
// ignore
|
||||
}
|
||||
|
||||
cproc.execSync(command + (prod ? ' --production' : ''), {
|
||||
cwd: path.join(__dirname, '../../'),
|
||||
stdio: [0, 1, 2],
|
||||
});
|
||||
try {
|
||||
cproc.execSync(command + (prod ? ' --production' : ''), {
|
||||
cwd: path.join(__dirname, '../../'),
|
||||
stdio: [0, 1, 2],
|
||||
});
|
||||
} catch (e) {
|
||||
console.log('Error installing dependencies!');
|
||||
console.log('message: ' + e.message);
|
||||
console.log('stdout: ' + e.stdout);
|
||||
console.log('stderr: ' + e.stderr);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
exports.installAll = installAll;
|
||||
|
||||
Reference in New Issue
Block a user