diff --git a/app/Utils/SystemHealth.php b/app/Utils/SystemHealth.php index 864b88dca942..9d0f031202e5 100644 --- a/app/Utils/SystemHealth.php +++ b/app/Utils/SystemHealth.php @@ -82,7 +82,7 @@ class SystemHealth exec('node -v', $foo, $exitCode); if ($exitCode === 0) { - return $exitCode; + return $foo[0]; } } catch (\Exception $e) { @@ -98,7 +98,7 @@ class SystemHealth exec('npm -v', $foo, $exitCode); if ($exitCode === 0) { - return $exitCode; + return $foo[0]; } }catch (\Exception $e) { diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 1edee92a325d..ab526a5efcc9 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -3238,5 +3238,7 @@ return [ 'checkout_authorize_label' => 'Checkout.com can be can saved as payment method for future use, once you complete your first transaction. Don\'t forget to check "Save card" during payment process.', + 'node_status_not_found' => 'I could not find Node anywhere. Is it installed?', + 'npm_status_not_found' => 'I could not find NPM anywhere. Is it installed?', ]; diff --git a/resources/views/setup/_issues.blade.php b/resources/views/setup/_issues.blade.php index 33f6b9d36bcb..896648389ca5 100644 --- a/resources/views/setup/_issues.blade.php +++ b/resources/views/setup/_issues.blade.php @@ -68,7 +68,7 @@
NPM Version => {{$check['npm_status']}}
+Node Version => {{$check['node_status']}}
+