From 1c08cd9057d3f1fc947a89948e96ed8c85610e18 Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Thu, 9 Jul 2020 05:29:55 +0100 Subject: [PATCH] Compat for npm in different directories --- app/Console/Commands/Install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/Install.php b/app/Console/Commands/Install.php index c4c8044..9c1f923 100644 --- a/app/Console/Commands/Install.php +++ b/app/Console/Commands/Install.php @@ -56,8 +56,8 @@ class Install extends Command // Command stack - $npm = new Process(['npm install', '--silent'], $basePath); - $npmBuild = new Process(['npm run dev', '--silent'], $basePath); + $npm = new Process(['/usr/bin/env npm install', '--silent'], $basePath); + $npmBuild = new Process(['/usr/bin/env npm run dev', '--silent'], $basePath); $this->info('>> Installing and preparing dependencies. This may take a while, depending on your computer.');