diff --git a/src/Installer/VendorInstaller.php b/src/Installer/VendorInstaller.php index ee583c39..aec24d21 100644 --- a/src/Installer/VendorInstaller.php +++ b/src/Installer/VendorInstaller.php @@ -126,7 +126,7 @@ public function installNode(): void Process::fromShellCommandline($cmd, $this->moodle->directory, null, null, null) ); if (!$process->isSuccessful()) { - throw new \RuntimeException('Node.js installation failed. Output: ' . $process->getOutput()); + throw new \RuntimeException('Node.js installation failed. Output: ' . $process->getOutput() . ' nvm dir: ' . $nvmDir); } // Retrieve NVM_BIN from initialisation output, we will use it to // substitute right Node.js environment in all future process runs.