It is highly recommended reading to solve this problem. My colleague David (akalam) recommended me this article from Acquia where they explain how to update "drupal/core-composer-scaffold". In my case, it was taking the composer.json from and manually going over what things were different. This is a nuisance because v2 is much faster, but apparently, it is not always compatible with older sites in D8. composer.json has been updated karins-MBP:d9civicrm. The "quick fix" is to leave composer v1 for the time being. karins-MBP:d9civicrm.local sysadmin composer require drupal/core-recommended:9.0.0dev drupal/core-composer-scaffold:9.0.0dev -update-with-dependencies -no-update. 8.9.x: composer require drupal/core-recommended:8.9.x-dev -update-with-all. Mostly because the client pays me to update Drupal, not to change server configurations. composer update drupal/core -with-dependencies If you'd like to update to an unstable release, use one of these instead: For alphas, betas, RCs, etc.: composer require 'drupal/core-recommended:8.9' -update-with-all-dependencies For a development branch, e.g. In the end, I have not been able to fix it, and the only thing I could do is to revert the composer and go back to using v1. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2. You are using Composer 2, which some of your plugins seem to be incompatible with. Root composer.json requires drupal-composer/drupal-scaffold ^2.5 -> satisfiable by drupal-composer/drupal-scaffold. drupal-composer/drupal-scaffold require composer-plugin-api ^1.0.0 -> found composer-plugin-api but it does not match the constraint. I get the following error: Your requirements could not be resolved to an installable set of packages. Today I got the surprise that I can't update this particular site using composer v2 (it's a good practice to always update on a copy on your local machine to check that everything works fine and not to crash the client site on the production server). To update your site and all dependencies to the latest version of Drupal: composer update 'drupal/core-' -with-all-dependencies. But I'm just starting to use docker images for local development with composer v2. To start a new Drupal project with version 9.5.6: composer create-project drupal/recommended-project:9.5.6 'install-dir'. This website has always had a composer in version 1, and I have already updated it several times. Today I had a little problem trying to update a website in Drupal 8.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |