Answers.Body: <p>You should replace 5.29 in the instructions with the current version. Right now it's 5.35.</p>
  <p>And I thought the docs were updated for this but for drupal 9 you also need to add <code>&quot;minimum-stability&quot;: &quot;dev&quot;</code> into composer.json.</p>
  <p>Also don't run composer as the root user.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-13T04:37:46.340Z
Answers.Text: I have done what you suggested and got error 
  Installation failed, reverting ./composer.json and ./composer.lock to their original content.
  
  
    [ErrorException]
    file_put_contents(/home/fimember/public_html/vendor/composer/installed.php): failed to open stream: Permission denied
  Jaisal
Answers.UserDisplayName: Jaizal
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-13T04:41:17.500Z
Answers.Text: If you ran it as root before then that folder is now owned by root, so you'll need to change the owner on everything in the vendor folder. Or just delete it if you're starting from scratch.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-13T04:52:39.837Z
Answers.Text: that solution worked!
Answers.UserDisplayName: Jaizal
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-13T04:53:30.180Z
Answers.Text: Great! Enjoy your civi site!
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-12T21:17:03.240Z
Answers.LastActivityDate: 2021-03-12T23:00:32.623Z
Answers.LastEditDate: 2021-03-12T23:00:32.623Z
Answers.UserDisplayName: Demerit
Answers.Body: <p>This issue we blogged about on <a href="https://civihosting.com/blog/bug-in-civicrm-installer-for-drupal-9/" rel="nofollow noreferrer">Bug in CiviCRM Installer for Drupal 9</a> and the basic solution is to run this:</p>
  <pre><code>composer require pear/validate_finance_creditcard:dev-master
  </code></pre>
  <p>before you try to install. Then it works.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-16T17:18:24.830Z
Answers.LastActivityDate: 2021-03-16T17:18:24.830Z
Answers.UserDisplayName: Hershel
Body: <p>I am trying to install CIVICRM on Drupal 9 as per instruction found here <a href="https://docs.civicrm.org/installation/en/latest/drupal9/" rel="nofollow noreferrer">https://docs.civicrm.org/installation/en/latest/drupal9/</a></p>
  <p>When i enter &quot;composer require civicrm/civicrm-{core,packages,drupal-8}:'~5.29'&quot; getting error as below .. how to resolve this issue ?</p>
  <p>[root@srv public_html]# composer require civicrm/civicrm-{core,packages,drupal-8}:'~5.29'
  Do not run Composer as root/super user! See <a href="https://getcomposer.org/root" rel="nofollow noreferrer">https://getcomposer.org/root</a> for details
  Continue as root/super user [yes]? yes
  ./composer.json has been updated
  Running composer update civicrm/civicrm-core civicrm/civicrm-packages civicrm/civicrm-drupal-8
  Loading composer repositories with package information
  Updating dependencies
  Your requirements could not be resolved to an installable set of packages.</p>
  <p>Problem 1
  - civicrm/civicrm-core[5.29.0, ..., 5.35.0] require pear/validate_finance_creditcard dev-master -&gt; found pear/validate_finance_creditcard[dev-master] but it does not match your minimum-stability.
  - Root composer.json requires civicrm/civicrm-core ~5.29 -&gt; satisfiable by civicrm/civicrm-core[5.29.0, ..., 5.35.0].</p>
  <p>Installation failed, reverting ./composer.json and ./composer.lock to their original content.</p>
  <p>Thanks
  Jaiz</p>
  
Tags: <install><drupal-9>
Title: Cannot install CIVICRM on Drupal 9
ThreadText: # Cannot install CIVICRM on Drupal 9
  
  (Asked by: username_0 on 2021-03-12)
  
  I am trying to install CIVICRM on Drupal 9 as per instruction found here <https://docs.civicrm.org/installation/en/latest/drupal9/>
  
  When i enter "composer require civicrm/civicrm-{core,packages,drupal-8}:'~5.29'" getting error as below .. how to resolve this issue ?
  
  [root@srv public\_html]# composer require civicrm/civicrm-{core,packages,drupal-8}:'~5.29'
  Do not run Composer as root/super user! See <https://getcomposer.org/root> for details
  Continue as root/super user [yes]? yes
  ./composer.json has been updated
  Running composer update civicrm/civicrm-core civicrm/civicrm-packages civicrm/civicrm-drupal-8
  Loading composer repositories with package information
  Updating dependencies
  Your requirements could not be resolved to an installable set of packages.
  
  Problem 1
  - civicrm/civicrm-core[5.29.0, ..., 5.35.0] require pear/validate\_finance\_creditcard dev-master -> found pear/validate\_finance\_creditcard[dev-master] but it does not match your minimum-stability.
  - Root composer.json requires civicrm/civicrm-core ~5.29 -> satisfiable by civicrm/civicrm-core[5.29.0, ..., 5.35.0].
  
  Installation failed, reverting ./composer.json and ./composer.lock to their original content.
  
  Thanks
  Jaiz
  
  **Tags:** install, drupal-9
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2021-03-12. Score: 2 | Accepted answer
  
  You should replace 5.29 in the instructions with the current version. Right now it's 5.35.
  
  And I thought the docs were updated for this but for drupal 9 you also need to add `"minimum-stability": "dev"` into composer.json.
  
  Also don't run composer as the root user.
  
  > **Comments:**
  > **username_0**: I have done what you suggested and got error  Installation failed, reverting ./composer.json and ./composer.lock to their original content.     [ErrorException]   file_put_contents(/home/fimember/public_html/vendor/composer/installed.php): failed to open stream: Permission denied Jaisal  
  > **username_1**: If you ran it as root before then that folder is now owned by root, so you'll need to change the owner on everything in the vendor folder. Or just delete it if you're starting from scratch.  
  > **username_0**: that solution worked!  
  > **username_1**: Great! Enjoy your civi site!  
  
  ---
  
  ### Answer by username_2 on 2021-03-16. Score: 0
  
  This issue we blogged about on Bug in CiviCRM Installer for Drupal 9 and the basic solution is to run this:
  composer require pear/validate_finance_creditcard:dev-master
  
  before you try to install. Then it works.
  
  
  ---
  
  