From b240ae89cdbaa9b03919ae396d7eae00dbe74d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 15 Feb 2018 15:50:44 -0500 Subject: [PATCH] #6289 --- src/cli/package-install.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) 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;