Respect the submission guidelines above! Drupal.org issue forks cause additional work for the project maintainer!
Setup
- Solr version: 8.8.2
- Drupal Core version: 8.8.5
- Search API version: 8.x-1.16
- Search API Solr version: 4.1
Issue
I run the command composer require drupal/search_api_solr:^4.1 but I am getting the following error
The "composer/installers" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
The "drupal/console-extend-plugin" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
The "drupal/core-composer-scaffold" plugin was skipped because it requires a Plugin API version ("^1.0.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
The "drupal/core-project-message" plugin was skipped because it requires a Plugin API version ("^1.1") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
The "drupal/core-vendor-hardening" plugin was skipped because it requires a Plugin API version ("^1.1") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
./composer.json has been updated
The "composer/installers" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
The "drupal/console-extend-plugin" plugin was skipped because it requires a Plugin API version ("^1.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
The "drupal/core-composer-scaffold" plugin was skipped because it requires a Plugin API version ("^1.0.0") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
The "drupal/core-project-message" plugin was skipped because it requires a Plugin API version ("^1.1") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
The "drupal/core-vendor-hardening" plugin was skipped because it requires a Plugin API version ("^1.1") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
Running composer update drupal/search_api_solr
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- composer/installers is locked to version v1.7.0 and an update of this package was not requested.
- composer/installers v1.7.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 2
- drupal/core-composer-scaffold is locked to version 8.8.5 and an update of this package was not requested.
- drupal/core-composer-scaffold 8.8.5 requires composer-plugin-api ^1.0.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 3
- drupal/core-project-message is locked to version 8.8.5 and an update of this package was not requested.
- drupal/core-project-message 8.8.5 requires composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 4
- drupal/core-vendor-hardening is locked to version 8.8.5 and an update of this package was not requested.
- drupal/core-vendor-hardening 8.8.5 requires composer-plugin-api ^1.1 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
Problem 5
- composer/installers v1.7.0 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
- drupal/console 1.9.5 requires composer/installers ~1.0 -> satisfiable by composer/installers[v1.7.0].
- drupal/console is locked to version 1.9.5 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.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
I tried the same with different versions of the composer by upgrading and degrading it. Also, updated the composer.lock file as "composer-plugin-api": "^1.0 || ^2.0", but no luck yet. Am I doing anything wrong?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2021-05-11 11_59_36-Window.png | 57.26 KB | siddiq |
Comments
Comment #2
siddiq commentedComment #3
mkalkbrennerThis is not an Search API Solr issue. You upgraded to composer 2 while parts of your project are fixed at composer 1 dependencies.
You should downgrade to composer 1 or upgrade your entire project. Once done you'll be able to install new packages again, including Search API Solr.