pulibrary / recap

ReCAP Drupal 10 Site
GNU General Public License v2.0
2 stars 1 forks source link

Composer Installer Problem #191

Open kevinreiss opened 2 years ago

kevinreiss commented 2 years ago

I was unable to run the standard drupal core composer update lando composer update drupal/core "drupal/core-*" --with-all-dependencies

The error message that kept coming up was: Class DrupalProject\composer\ScriptHandler is not autoloadable, can not call post-update-cmd script

After removing the following lines (https://github.com/pulibrary/recap/pull/190/files#r883982188) from composer.json I was able to run the update by pinning the version of drupal to the current 9.3.14 release directly with this command.

lando composer require drupal/core-recommended:9.3.14 drupal/core-composer-scaffold:9.3.14 drupal/core-project-message:9.3.14 --update-with-all-dependencies

The error message Class DrupalProject\composer\ScriptHandler is not autoloadable, can not call post-update-cmd script still came up during my successful update so I really don't know what exactly made a difference, but composer did finally run the core update.