Cannot install API 2.0.0 for Drupal 11.0.1 - conflict with symfony/yaml
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3469142. -->
Reported by: [yasheshb](https://www.drupal.org/user/12675)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Installing API 2.0 on Drupal 11.0.1</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<pre>$ composer require 'drupal/api:^2.0'<br>Do not run Composer as root/super user! See https://getcomposer.org/root for details<br>Continue as root/super user [yes]?<br>./composer.json has been updated<br>Running composer update drupal/api<br>Loading composer repositories with package information<br>Updating dependencies<br>Your requirements could not be resolved to an installable set of packages.<br><br> Problem 1<br> - Root composer.json requires drupal/api ^2.0 -> satisfiable by drupal/api[2.0.0].<br> - drupal/api 2.0.0 requires symfony/yaml ^4.4.19 || ^6.2 -> found symfony/yaml[v4.4.19, ..., v4.4.45, v6.2.0, ..., v6.4.8] but it conflicts with your root composer.json require (^7.1).<br><br>Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.<br><br>Installation failed, reverting ./composer.json and ./composer.lock to their original content.</pre><h3 id="summary-proposed-resolution">Proposed resolution</h3>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue