diff --git a/src/Installer/VendorInstaller.php b/src/Installer/VendorInstaller.php index 3f1fb3bc..ae41b57c 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.'); + throw new \RuntimeException('Node.js installation failed. Output: ' . $process->getOutput() . ' nvm dir: ' . (string) $nvmDir); } // Retrieve NVM_BIN from initialisation output, we will use it to // substitute right Node.js environment in all future process runs.