From 96298cd38c2e0b44da7e60e86de3e1cc6c2c2e86 Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Thu, 9 Jul 2020 05:55:23 +0100 Subject: [PATCH] Add forgotten output for commands --- app/Console/Commands/Install.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/Install.php b/app/Console/Commands/Install.php index a668ce0..1c253d0 100644 --- a/app/Console/Commands/Install.php +++ b/app/Console/Commands/Install.php @@ -55,10 +55,13 @@ class Install extends Command $this->info('>> Installing and preparing dependencies. This may take a while, depending on your computer.'); $npmOut = 0; - $npmBuildOut = 0; + $npmMessages = []; - exec('cd ' . $basePath . ' && npm install', null, $npmOut); - exec('cd ' . $basePath . '&& npm run dev', null, $npmBuildOut); + $npmBuildOut = 0; + $npmBuildMessages = []; + + exec('cd ' . $basePath . ' && npm install', $npmBuildOut, $npmOut); + exec('cd ' . $basePath . '&& npm run dev', $npmBuildMessages, $npmBuildOut); if($npmOut !== 0 && $npmBuildOut !== 0)