diff --git a/src/Installer/VendorInstaller.php b/src/Installer/VendorInstaller.php index 95b101c..fb0adc0 100644 --- a/src/Installer/VendorInstaller.php +++ b/src/Installer/VendorInstaller.php @@ -76,7 +76,7 @@ public function install() if ($this->plugin->hasUnitTests() || $this->plugin->hasBehatFeatures()) { $processes[] = new Process('composer install --no-interaction --prefer-dist', $this->moodle->directory, null, null, null); } - $processes[] = new Process('npm install -g --no-progress grunt', null, null, null, null); + $processes[] = new Process('npm install --no-progress grunt', null, null, null, null); $this->execute->mustRunAll($processes); @@ -87,7 +87,7 @@ public function install() $this->execute->mustRun(new Process('npm install --no-progress', $this->plugin->directory, null, null, null)); } - $this->execute->mustRun(new Process('grunt ignorefiles', $this->moodle->directory, null, null, null)); + $this->execute->mustRun(new Process('npx grunt ignorefiles', $this->moodle->directory, null, null, null)); } public function stepCount()