drush/drush[12.0.0, ..., 12.2.0] require composer-runtime-api ^2.2
Resources - changing Drush
Type | Version |
---|---|
Drush (current) | 11.6.0 |
Drush (update) | 12.2.0 |
Updating Drush went OK on all testing environments until on to the staging environment.
The initial error that I saw was
Could not delete /var/www/html/content/vendor/composer/
Attempting to run a composer update command, you know the one used regularly
composer update
I ran into a 'could not delete' response
how to update composer
Looking at composer I first wanted to check the current version, which is actioned by running the following command
composer -V
The response I was seeing
Composer version 2.1.5 2021-07-23 10:35:47
Docker - Warning: copy(): SSL operation failed with code 1. OpenSSL Error messages:
Build the PHP base image with apache-buster using the Dockerfile.base
Since JN blocks some libraries update and pull, follow the following steps to build the base image locally.
Run the following command to build the base PHP image:
Make sure you are in the project root directory before running the command and its a fresh window after changing the proxy
Updating dependencies in Composer
This article works through the steps to update dependencies in the composer.json file to the latest version.
Use composer outdated to suggest the latest versions.
composer outdated
Whereas, to return a complete list of packages where packages that need an update are coloured red, the up-to-date ones are coloured green
composer show -l
How can I run composer without user interaction and yes to all?
lando COMPOSE_HTTP_TIMEOUT error
How to run an update using composer, but not to the latest version of Drupal
Let say in composer.json you have
"drupal/core-recommended": "^9.2"
You're attempting to run
composer update "drupal/core-*" --with-all-dependencies
...to update to the latest 9.2.x version. Yet instead you are finding 9.3.6 installed.
Updating Composer
Running composer on a server... when running the command composer update, screen would error out. In the site directory, composer would show
composer --version
Composer version 1.10.24 2021-12-09 20:06:33
Whereas, the commnd
/opt/plesk/php/7.4/bin/php /usr/lib64/plesk-9.0/composer.phar --version Composer version 2.2.5 2022-01-21 17:25:52
Ok, so composer on the server is running 2.2x. But on my site directory, 1.x
jquery-ui-slider-pips not loading, time to move to Svelte
Have you tried to run a composer update script that has bower-asset/jquery-ui-slider-pips set? I have and realised that jquery-ui-slider-pips package had been removed. So I added it back, and ran the command composer update.