Answers.Body: <p>In the meantime until this is fixed you can install this patch: <a href="https://patch-diff.githubusercontent.com/raw/civicrm/composer-compile-lib/pull/1.patch" rel="nofollow noreferrer">https://patch-diff.githubusercontent.com/raw/civicrm/composer-compile-lib/pull/1.patch</a></p>
  <p>Then run <code>composer compile</code>.</p>
  <p>May also need to then run <code>composer civicrm:publish</code>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-16T15:15:24.903Z
Answers.Text: Newbie question, but how would you apply the patch?
Answers.UserDisplayName: Craig Creque
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-16T15:26:53.127Z
Answers.Text: If you have git and curl on the server, you can do `cd /path/to/vendor/civicrm/composer-compile-lib && curl -L -O https://patch-diff.githubusercontent.com/raw/civicrm/composer-compile-lib/pull/1.patch && git apply 1.patch`.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-16T15:29:31.413Z
Answers.Text: But the meat of it is just change line 17 in vendor/civicrm/composer-compile-lib/ src/ScssCompiler.php to `public function findImport($url, $currentDir = NULL) {` and line 45 to `return parent::findImport($url, $currentDir);` https://github.com/civicrm/composer-compile-lib/pull/1/files#diff-de1563b44a5c7c9235d6634fd05f7cf80a4696f131122a7b0bf7b00d18e393d0
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-17T23:09:23.510Z
Answers.Text: Looks like the fix was just merged so you could just try again without patching.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-19T00:41:50.867Z
Answers.Text: Thanks for your help, it was greatly appreciated
Answers.UserDisplayName: Craig Creque
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-16T14:17:33.860Z
Answers.LastActivityDate: 2021-05-16T14:17:33.860Z
Answers.UserDisplayName: Demerit
Body: <p>I'm getting thiis error, when I try to install civicrm on Drupal 8 and 9</p>
  <p>The following packages have new compilation tasks:</p>
  <ul>
  <li>civicrm/composer-compile-lib has 1 task</li>
  <li>civicrm/civicrm-core has 1 task</li>
  </ul>
  <p>Allow these packages to compile? ([y]es, [a]lways, [n]o, [l]ist, [h]elp) y
  Compiling additional files (For full details, use verbose &quot;-v&quot; mode.)
  Compile: Generate CCL wrapper functions
  Compile: Greenwich CSS (dist/bootstrap3.css)</p>
  <blockquote>
  <p>@php -r 'require_once '''/home/bvivaccinate/public_html/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/bvivaccinate/public_html/vendor/autoload.php'''; Civi\CompilePlugin\TaskTransfer::import(); \CCL\Tasks::scss($GLOBALS[&quot;COMPOSER_COMPILE_TASK&quot;]);'
  Script @php -r 'require_once '''/home/bvivaccinate/public_html/vendor/autoload.php'''; Civi\CompilePlugin\TaskTransfer::import(); \CCL\Tasks::scss($GLOBALS[&quot;COMPOSER_COMPILE_TASK&quot;]);' handling the shell-runner event returned with error code 255
  Subcommand @composer compile  returned with error code 255</p>
  </blockquote>
  <p>Installation failed, reverting ./composer.json and ./composer.lock to their original content.</p>
  <p>[RuntimeException]
  Subcommand @composer compile  returned with error code 255</p>
  <p>These are the commands I ran to install it for drupal 9</p>
  <p>php composer.phar create-project drupal/recommended-project</p>
  <p>php composer.phar require pear/validate_finance_creditcard:dev-master</p>
  <p>php composer.phar config extra.enable-patching true</p>
  <p>php composer.phar require civicrm/civicrm-asset-plugin:'~1.1'</p>
  <p>php composer.phar require    civicrm/civicrm-{core,packages,drupal-8}:'~5.37.2'</p>
  <p>Composer version 2.0.13
  PHP 7.3.28</p>
  <p>Can someone please assist</p>
  
Tags: <error><installation><css><install><composer>
Title: Drupal 8/9 Compilation Install Error
ThreadText: # Drupal 8/9 Compilation Install Error
  
  (Asked by: username_0 on 2021-05-16)
  
  I'm getting thiis error, when I try to install civicrm on Drupal 8 and 9
  
  The following packages have new compilation tasks:
  
  * civicrm/composer-compile-lib has 1 task
  * civicrm/civicrm-core has 1 task
  
  Allow these packages to compile? ([y]es, [a]lways, [n]o, [l]ist, [h]elp) y
  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/bvivaccinate/public\_html/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/bvivaccinate/public\_html/vendor/autoload.php'''; Civi\CompilePlugin\TaskTransfer::import(); \CCL\Tasks::scss($GLOBALS["COMPOSER\_COMPILE\_TASK"]);'
  > Script @php -r 'require\_once '''/home/bvivaccinate/public\_html/vendor/autoload.php'''; Civi\CompilePlugin\TaskTransfer::import(); \CCL\Tasks::scss($GLOBALS["COMPOSER\_COMPILE\_TASK"]);' handling the shell-runner event returned with error code 255
  > Subcommand @composer compile returned with error code 255
  
  Installation failed, reverting ./composer.json and ./composer.lock to their original content.
  
  [RuntimeException]
  Subcommand @composer compile returned with error code 255
  
  These are the commands I ran to install it for drupal 9
  
  php composer.phar create-project drupal/recommended-project
  
  php composer.phar require pear/validate\_finance\_creditcard:dev-master
  
  php composer.phar config extra.enable-patching true
  
  php composer.phar require civicrm/civicrm-asset-plugin:'~1.1'
  
  php composer.phar require civicrm/civicrm-{core,packages,drupal-8}:'~5.37.2'
  
  Composer version 2.0.13
  PHP 7.3.28
  
  Can someone please assist
  
  **Tags:** error, installation, css, install, composer
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-05-16. Score: 1
  
  In the meantime until this is fixed you can install this patch: <https://patch-diff.githubusercontent.com/raw/civicrm/composer-compile-lib/pull/1.patch>
  
  Then run `composer compile`.
  
  May also need to then run `composer civicrm:publish`.
  
  > **Comments:**
  > **username_0**: Newbie question, but how would you apply the patch?  
  > **username_1**: If you have git and curl on the server, you can do `cd /path/to/vendor/civicrm/composer-compile-lib && curl -L -O https://patch-diff.githubusercontent.com/raw/civicrm/composer-compile-lib/pull/1.patch && git apply 1.patch`.  
  > **username_1**: But the meat of it is just change line 17 in vendor/civicrm/composer-compile-lib/ src/ScssCompiler.php to `public function findImport($url, $currentDir = NULL) {` and line 45 to `return parent::findImport($url, $currentDir);` https://github.com/civicrm/composer-compile-lib/pull/1/files#diff-de1563b44a5c7c9235d6634fd05f7cf80a4696f131122a7b0bf7b00d18e393d0  
  > **username_1**: Looks like the fix was just merged so you could just try again without patching.  
  > **username_0**: Thanks for your help, it was greatly appreciated  
  
  ---
  
  