![]() ![]() I then ran the above Drupal 9 upgrade command again. In no documentation have I read that this needs to be removed from the composer.json file. Because my composer.json had "drupal/core": "^8.7.0", as required, it was attempting to honor this. They will need to be explicitly triggered.Ĭomposer require drupal/core-recommended:^9.2.0 drupal/core-composer-scaffold:^9.2.0ĭrupal/core-project-message:^9.2.0 drupal/editor_advanced_link:^2.0 drupal/twig_tweak:^3.1ĭrupal-composer/drupal-project dev-afc_dev requires drupal/core (^8.7.0)ĭrupal/core 9.2.6 requires symfony/console (^4.4)ĭrupal-composer/drupal-project dev-afc_dev does not require symfony/console (but v3.4.47 is installed)ĭrupal/core 9.2.6 requires symfony/dependency-injection (^4.4)ĭrupal-composer/drupal-project dev-afc_dev does not require symfony/dependency-injection (but v3.4.47 is installed) Despite using -with-all-dependencies, these upgrades were not being triggered by the upgrade process. These errors would show me what additional elements needed to be upgraded. Based on a video, Upgrade From Drupal 8 to 9 with composer I had watched, I anticipated errors.I wanted to upgrade Twig Tweak and Editor Advanced Link as well.With my process there were slight variations I wanted: 'drupal/core-project-message:^9.2.0' -update-with-dependencies -no-update I used a Drupal Document Page for my Composer update commands.Ĭomposer require 'drupal/core-recommended:^9.2.0' 'drupal/core-composer-scaffold:^9.2.0' I was now in a position to upgrade Drupal. Drupal 9 uses drupal/core-composer-scaffold, which we require on the upgrade process below.Ĭomposer remove drupal-composer/drupal-scaffold -no-update In my case, the only plugin that needed attention was drupal-composer/drupal-scaffold. composer selfupdate -2 Remove Plugins / Local Packages In this regard, these are the only plugins / local packages that I needed to upgrade. composer update cweagans/composer-patches -with-all-dependencies.composer update cweagans/composer-patches -with-all-dependencies -dry-run - this will show if there are errors.composer require cweagans/composer-patches:^1.7 -no-update - this updates composer.json file.composer update composer/installers -with-all-dependencies.composer update composer/installers -with-all-dependencies -dry-run - this will show if there are errors.composer require composer/installers:^1.9 -no-update - this updates composer.json file.While on Composer 1, remove plugins / local packages no longer required.While on Composer 1, upgrade plugins / local packages if required.It is the page I used for my process below. As I mentioned, your site may have different requirements. ![]() I installed 4.1.1 after the Drupal 9 upgrade was complete.īefore upgrading we need to do a couple of checks. I elected to uninstall the module (and Devel Kint) rather than upgrade to 4.1.1. I use Devel Kint, included in the 8.x-2.1 version, but not included in the 4.1.1 version. This is not Drupal 9 compatible, however 4.1.1 is. The module is not essential to the site, so we can uninstall it and remove it from our project composer.json file.ĭo this process for all the modules installed.Ī note on the Devel module. ✓ Recommended by the project’s maintainer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |