mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 17:35:46 +01:00
This commit is contained in:
@@ -41,11 +41,18 @@ function installAll() {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
cproc.execSync(command + (prod ? ' --production' : ''), {
|
cproc.execSync(command + (prod ? ' --production' : ''), {
|
||||||
cwd: path.join(__dirname, '../../'),
|
cwd: path.join(__dirname, '../../'),
|
||||||
stdio: [0, 1, 2],
|
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;
|
exports.installAll = installAll;
|
||||||
|
|||||||
Reference in New Issue
Block a user