<p>Composer 2 support has been drafted over at <a href="https://github.com/craftcms/plugin-installer/pull/4" rel="nofollow noreferrer">craftcms/plugin-installer#4</a>. We’ll merge that in once Composer 2 is officially released.</p>

<p>~~In the meantime, if you really need to get Craft working with Composer 2, follow the instructions at <a href="https://github.com/craftcms/plugin-installer/issues/3#issuecomment-613959587" rel="nofollow noreferrer">craftcms/plugin-installer#3</a>.~~</p>

<p><strong>UPDATE:</strong> <code>craftcms/plugin-installer</code> and <code>yiisoft/yii2-composer</code> have both been updated to support Composer 2.</p>

CC BY-SA 4.0
2020-11-01T22:00:49.867Z
Composer 2 has now been released and plenty of plugins are incompatible, including core plugins like Amazon S3 and redactor.
jishi
CC BY-SA 4.0
2020-11-01T22:10:24.117Z
@jishi just run `composer update` so you get the latest version of `craftcms/plugin-installer`
Brandon Kelly
CC BY-SA 4.0
2020-11-02T15:28:48.893Z
Ah, yes. So it seems. My bad!
jishi
CC BY-SA 4.0
2020-04-15T10:40:13.017Z
2020-04-20T20:28:45.377Z
2020-04-20T20:28:45.377Z
Brandon Kelly
<p>We have a website built in Craft 3.4.14 and we are moving it to a hosting company with CentOS 7, using Plesk Obsidian 18.0.5.</p>

<p>The hosting company has told us that they have upgraded Composer from version 1 to version 2. On my local machine I have been using version 1.10. However, I try to run Composer on the server and I get these issues: -</p>

<ul>
<li>craftcms/plugin-installer 1.5.3 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match your constraint.</li>
<li>craftcms/plugin-installer 1.5.4 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match your constraint.</li>
<li>craftcms/cms 3.4.14 requires craftcms/plugin-installer ~1.5.3 -> satisfiable by craftcms/plugin-installer[1.5.4, 1.5.3].</li>
<li>Root composer.json requires craftcms/cms 3.4.14 -> satisfiable by craftcms/cms[3.4.14].</li>
</ul>

<p>Is there a way around these issues so that we can get Craft CMS installed please?</p>

<p>Thank you for your time.</p>

<craft3><composer>
Craft CMS issue with Composer V2
# Craft CMS issue with Composer V2

(Asked by: username_0 on 2020-04-14)

We have a website built in Craft 3.4.14 and we are moving it to a hosting company with CentOS 7, using Plesk Obsidian 18.0.5.

The hosting company has told us that they have upgraded Composer from version 1 to version 2. On my local machine I have been using version 1.10. However, I try to run Composer on the server and I get these issues: -

* craftcms/plugin-installer 1.5.3 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match your constraint.
* craftcms/plugin-installer 1.5.4 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match your constraint.
* craftcms/cms 3.4.14 requires craftcms/plugin-installer ~1.5.3 -> satisfiable by craftcms/plugin-installer[1.5.4, 1.5.3].
* Root composer.json requires craftcms/cms 3.4.14 -> satisfiable by craftcms/cms[3.4.14].

Is there a way around these issues so that we can get Craft CMS installed please?

Thank you for your time.

**Tags:** craft3, composer

---

## 1 answers

### Answer by username_1 on 2020-04-15. Score: 1

Composer 2 support has been drafted over at [craftcms/plugin-installer#4](https://github.com/craftcms/plugin-installer/pull/4). We’ll merge that in once Composer 2 is officially released.

~~In the meantime, if you really need to get Craft working with Composer 2, follow the instructions at [craftcms/plugin-installer#3](https://github.com/craftcms/plugin-installer/issues/3#issuecomment-613959587).~~

**UPDATE:** `craftcms/plugin-installer` and `yiisoft/yii2-composer` have both been updated to support Composer 2.

> **Comments:**
> **username_2**: Composer 2 has now been released and plenty of plugins are incompatible, including core plugins like Amazon S3 and redactor.  
> **username_1**: @jishi just run `composer update` so you get the latest version of `craftcms/plugin-installer`  
> **username_2**: Ah, yes. So it seems. My bad!  

---

