composer self-update --2
composer update
, which will fail for a couple of plugins, but will update craftcms/plugin-installer
to 1.5.6
/vendor
folder (you can do this with rm -rf vendor
)composer update
(or composer install
) again, as the lock file has already been updated in the first step, and craftcms/plugin-installer
is locked to 1.5.6
now, so the plugins should install fine.The lock file is backward-compatible with 1.x, so the deployment will work on the server whether Composer has been updated to 2.x or not.