I've installed Drupal 9.2.5 using Composer (version 2.1.8). I am trying to install CiviCRM 5.41.0. I followed the steps in the CiviCRM instructions for installation on Drupal 8/9 using Composer.
The first couple of goes I got an "Installation failed" message at the CiviCRM compilation step.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
[RuntimeException] Subcommand @composer compile returned with error code 255
So I decided to install Civi again, but skipped the compile step and do that as a separate instance.
The installation completed.
I then ran composer to compile all and got the same error code 255. For the full trace, see below.
I previously installed CiviCRM 5.40.3 and Drupal 9.2.3 with no issue.
I have read the similar issue over here:Drupal 8/9 Compilation Install Error but I noted that a patch for that issue was applied four months ago.
Can someone please help. I am not a developer. Just a self-taught admin trying to install CiviCRM.
Thanks.
$ composer compile --all
Compiling additional files (For full details, use verbose "-v" mode.) Compile: Generate CCL wrapper functions Compile: Greenwich CSS (dist/bootstrap3.css)
@php -r 'require_once '''/home/sdarmnet/dev9-my.sdarm.org.au/vendor/autoload.php'''; Civi\CompilePlugin\TaskTransfer::import(); \CCL::copy('''../../bower_components/select2/select2-bootstrap.css''', '''extern/select2/select2-bootstrap.scss''');'
@php -r 'require_once '''/home/sdarmnet/dev9-my.sdarm.org.au/vendor/autoload.php'''; Civi\CompilePlugin\TaskTransfer::import(); \CCL\Tasks::scss($GLOBALS[\Civi\CompilePlugin\TaskTransfer::GLOBAL_VAR]);'
Script @php -r 'require_once '''/home/sdarmnet/dev9-my.sdarm.org.au/vendor/autoload.php'''; Civi\CompilePlugin\TaskTransfer::import(); \CCL\Tasks::scss($GLOBALS[\Civi\CompilePlugin\TaskTransfer::GLOBAL_VAR]);' handling the shell-runner event returned with error code 255 [sdarmnet@s04ad dev9-my.sdarm.org.au]$ composer --version Composer version 2.1.8 2021-09-15 13:55:14```