Answers.Body: <p>This error comes when the civicrm folder is not present in the vendor directory.</p>
  <p>Make sure you install civicrm with composer</p>
  <pre><code>• composer config extra.enable-patching true
  • composer require civicrm/civicrm-asset-plugin:'~1.1'
  • composer require civicrm/civicrm-{core,packages,drupal-8}:'5.31.0'
  </code></pre>
  <p>And add l10n if needed.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-02-03T12:14:14.220Z
Answers.LastActivityDate: 2021-02-04T12:54:16.823Z
Answers.LastEditDate: 2021-02-04T12:54:16.823Z
Answers.UserDisplayName: Hans Rossel
Answers.Body: <p>In the end I found that:</p>
  
  <pre><code> composer require civicrm/civicrm-core
  </code></pre>
  
  <p>seemed to work for me :)</p>
  
  <p>I found it via:</p>
  
  <pre><code>:~/buildkit/build/ptest/sites/default$ composer require civicrm
  
  No composer.json in current directory, do you want to use the one at /home/xxx/buildkit/build/test? [Y,n]? y
  
  
    [InvalidArgumentException]       
    Could not find package civicrm.  
  
    Did you mean one of these?       
        civicrm/cv                   
        civicrm/civix                
        drupal/civimail              
        drupal/civicrm_cron          
        civicrm/civicrm-core         
  </code></pre>
  
  <p>and saw the civicrm/civicrm-core in the suggestions...</p>
  
  <p>the site broke after it had installed - but this does seem like the right command.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-28T19:48:22.927Z
Answers.Text: The latest on this is that you need to use the roundearth installer but not the longer instructions anymore. See https://gitlab.com/roundearth/civicrm-composer-plugin. There's some work going on to be able to use buildkit but it's not ready yet. To get a development environment I've been using it like this https://civicrm.stackexchange.com/questions/21895/install-development-environment-civicrm-for-drupal-8
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-28T16:31:12.790Z
Answers.LastActivityDate: 2020-01-28T16:31:12.790Z
Answers.UserDisplayName: Marsh
Answers.Body: <p>I asked on Friday in chat.civicrm.org and it sounded like the current state is still like those other instructions you've linked. I wasn't able to get it working with the automated vagrant setup and haven't got around yet to trying those manual instructions with the latest code, but maybe someone else can confirm sooner.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-30T15:13:51.200Z
Answers.Text: It does appear to still require the longer instructions at https://www.mydropwizard.com/blog/how-install-civicrm-drupal-8-and-why-choose-it-over-pure-drupal-crm, combined with the notes at https://hq.megaphonetech.com/projects/commons/wiki/CiviCRM_for_Drupal_8_installation_notes to avoid making the vendor directory web accessible.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-13T23:06:01.110Z
Answers.LastActivityDate: 2018-11-13T23:06:01.110Z
Answers.UserDisplayName: Demerit
Body: <p>Drupal 8.6.3, CiviCRM 5.7.0, PHP 7.2.10.  Followed the instructions in <a href="https://github.com/civicrm/civicrm-drupal-8/blob/master/README.md" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-drupal-8/blob/master/README.md</a> (skipped "load dummy data" and -b'd "master" instead of the missing 8.x-master). The error comes up after the final instruction, "install CiviCRM Core." I now have composer.phar and seems to be ready to go, but what are the appropriate command line args &amp; working directory given where I'm at? I'd prefer not to have to scratch everything to follow the directions <a href="https://www.mydropwizard.com/blog/how-install-civicrm-drupal-8-and-why-choose-it-over-pure-drupal-crm" rel="nofollow noreferrer">here</a> or <a href="https://blog.acromedia.com/civicrm-installation-in-drupal-8-and-commerce-2" rel="nofollow noreferrer">here</a>!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-12-25T11:26:38.503Z
Comments.Text: Hello SRQ_civicrm, I try this https://www.mydropwizard.com/blog/how-install-civicrm-drupal-8-and-why-choose-it-over-pure-drupal-crm and also https://blog.acromedia.com/civicrm-installation-in-drupal-8-and-commerce-2 without great succes. Except with the David Snopek project on GitLab, but unfortunately it is old versions of Drupal and CiviCRM. I couldn't upgrade both. so I tried the Installation of the CiviCRM Drupal 8 Module on https://github.com/civicrm/civicrm-drupal-8/blob/master/README.md and got the same warning : CiviCRM must be installed via composer.
Comments.UserDisplayName: Ichi
Tags: <drupal-8>
Title: Error "CiviCRM must be installed via composer" in Drupal8
ThreadText: # Error "CiviCRM must be installed via composer" in Drupal8
  
  (Asked by: username_0 on 2018-11-13)
  
  Drupal 8.6.3, CiviCRM 5.7.0, PHP 7.2.10. Followed the instructions in <https://github.com/civicrm/civicrm-drupal-8/blob/master/README.md> (skipped "load dummy data" and -b'd "master" instead of the missing 8.x-master). The error comes up after the final instruction, "install CiviCRM Core." I now have composer.phar and seems to be ready to go, but what are the appropriate command line args & working directory given where I'm at? I'd prefer not to have to scratch everything to follow the directions [here](https://www.mydropwizard.com/blog/how-install-civicrm-drupal-8-and-why-choose-it-over-pure-drupal-crm) or [here](https://blog.acromedia.com/civicrm-installation-in-drupal-8-and-commerce-2)!
  
  **Tags:** drupal-8
  
  > **Comments:**
  > **username_1**: Hello SRQ_civicrm, I try this https://www.mydropwizard.com/blog/how-install-civicrm-drupal-8-and-why-choose-it-over-pure-drupal-crm and also https://blog.acromedia.com/civicrm-installation-in-drupal-8-and-commerce-2 without great succes. Except with the David Snopek project on GitLab, but unfortunately it is old versions of Drupal and CiviCRM. I couldn't upgrade both. so I tried the Installation of the CiviCRM Drupal 8 Module on https://github.com/civicrm/civicrm-drupal-8/blob/master/README.md and got the same warning : CiviCRM must be installed via composer.  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2021-02-03. Score: 0 | Accepted answer
  
  This error comes when the civicrm folder is not present in the vendor directory.
  Make sure you install civicrm with composer
  • composer config extra.enable-patching true
  • composer require civicrm/civicrm-asset-plugin:'~1.1'
  • composer require civicrm/civicrm-{core,packages,drupal-8}:'5.31.0'
  
  And add l10n if needed.
  
  
  ---
  
  ### Answer by username_3 on 2020-01-28. Score: 1
  
  In the end I found that:
   composer require civicrm/civicrm-core
  
  seemed to work for me :)
  I found it via:
  :~/buildkit/build/ptest/sites/default$ composer require civicrm
  
  No composer.json in current directory, do you want to use the one at /home/xxx/buildkit/build/test? [Y,n]? y
  
  
    [InvalidArgumentException]       
    Could not find package civicrm.  
  
    Did you mean one of these?       
        civicrm/cv                   
        civicrm/civix                
        drupal/civimail              
        drupal/civicrm_cron          
        civicrm/civicrm-core         
  
  and saw the civicrm/civicrm-core in the suggestions...
  the site broke after it had installed - but this does seem like the right command.
  
  > **Comments:**
  > **username_4**: The latest on this is that you need to use the roundearth installer but not the longer instructions anymore. See https://gitlab.com/roundearth/civicrm-composer-plugin. There's some work going on to be able to use buildkit but it's not ready yet. To get a development environment I've been using it like this https://civicrm.stackexchange.com/questions/21895/install-development-environment-civicrm-for-drupal-8  
  
  ---
  
  ### Answer by username_4 on 2018-11-13. Score: 1
  
  I asked on Friday in chat.civicrm.org and it sounded like the current state is still like those other instructions you've linked. I wasn't able to get it working with the automated vagrant setup and haven't got around yet to trying those manual instructions with the latest code, but maybe someone else can confirm sooner.
  
  > **Comments:**
  > **username_4**: It does appear to still require the longer instructions at https://www.mydropwizard.com/blog/how-install-civicrm-drupal-8-and-why-choose-it-over-pure-drupal-crm, combined with the notes at https://hq.megaphonetech.com/projects/commons/wiki/CiviCRM_for_Drupal_8_installation_notes to avoid making the vendor directory web accessible.  
  
  ---
  
  