@murrant I’ve added a line of extra output in the Dependencies.php to see why the error is being thrown (ie. what is in the variable $composer_output for the composer version to not be found…)
public function validate(Validator $validator)
{
$composer_output = trim(shell_exec($validator->getBaseDir() . '/scripts/composer_wrapper.php --version'));
$found = preg_match('/Composer (version )?([.0-9]+)/', $composer_output, $matches);
if (!$found) {
$validator->fail("No composer available, please install composer", "https://getcomposer.org/");
**$validator->fail("Composer Output", $composer_output);**
return;
} else {
$validator->ok("Composer Version: " . $matches[2]);
}
And now I have some new potentially useful output…
[RuntimeException] The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly