Zahid Hussain
Zahid Hussain

Reputation: 1121

Drupal composer install: Your requirements could not be resolved to an installable set of packages

I am using drupal 8 and I am trying to install the Search API Solr module each time I run the command.

composer require drupal/search_api_solr

I am getting this error

Your requirements could not be resolved to an installable set of packages.

Here is the screenshot of the error I am getting. Could anyone please help me

enter image description here

Upvotes: 1

Views: 483

Answers (2)

Corentin Le Fur
Corentin Le Fur

Reputation: 338

Which Drupal Core version do you use ? It could be related to the symfony/event-dispatcher library.

Can you try composer require symfony/event-dispatcher:"4.3.4 as 3.4.99" drupal/search_api_solr ?

More infos here : https://www.drupal.org/project/drupal/issues/2876675#comment-13272878

Upvotes: 2

Meera
Meera

Reputation: 170

Looks like the module you are trying to install needs some additional package.

Upvotes: 0

Related Questions