diff --git a/src/cli/package-install.js b/src/cli/package-install.js index af245b08fb..7baaee2a2b 100644 --- a/src/cli/package-install.js +++ b/src/cli/package-install.js @@ -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;