I tried to install an extension from the Magento market place but I got an incompatibility error...

 

Installing dependencies from lock file (including require-dev)

Verifying lock file contents can be installed on the current platform.

Your lock file does not contain a compatible set of packages. Please run composer update.

 

  Problem 1

    - laminas/laminas-dependency-plugin is locked to version 1.0.3 and an update of this package was not requested.

    - laminas/laminas-dependency-plugin 1.0.3 requires composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

  Problem 2

    - magento/magento-composer-installer is locked to version 0.1.13 and an update of this package was not requested.

    - magento/magento-composer-installer 0.1.13 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

  Problem 3

    - dealerdirect/phpcodesniffer-composer-installer is locked to version v0.5.0 and an update of this package was not requested.

    - dealerdirect/phpcodesniffer-composer-installer v0.5.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

  Problem 4

    - magento/magento-composer-installer 0.1.13 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.

    - colinmollenhour/cache-backend-redis 1.10.6 requires magento-hackathon/magento-composer-installer * -> satisfiable by magento/magento-composer-installer[0.1.13].

    - colinmollenhour/cache-backend-redis is locked to version 1.10.6 and an update of this package was not requested.

 

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.

 

 

Solution

Downgrade Composer to Version 1 

 

If for any reason you need to downgrade Composer to the latest version 1 release, you can do so by running the following command as root:

sudo composer self-update --1

 

Once the hold has been removed, then ServerPilot will eventually automatically update the composer package again. However, you can manually upgrade it to the latest version 2 release by running the following command as root:

 

sudo composer self-update --2