安装fos / elasticabundle,需要pagerfanta版本

时间:2019-01-12 09:40:21

标签: symfony elasticsearch

我想安装FOSElasticaBundle,但是出现了erorr。

我不知道该怎么办,系统cmd会显示以下内容:

C:\xampp\htdocs\project>composer require friendsofsymfony/elastica-bundle
Using version ^5.0 for friendsofsymfony/elastica-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "4.1.*"
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install friendsofsymfony/elastica-bundle v5.0.3
    - Conclusion: don't install friendsofsymfony/elastica-bundle v5.0.2
    - Conclusion: don't install friendsofsymfony/elastica-bundle v5.0.1
    - Conclusion: remove pagerfanta/pagerfanta v2.0.1
    - Installation request for friendsofsymfony/elastica-bundle ^5.0 -> satisfiable by friendsofsymfony/elastica-bundle[v5.0.0, v5.0.1, v5.0.2, v5.0.3].
    - Conclusion: don't install pagerfanta/pagerfanta v2.0.1
    - friendsofsymfony/elastica-bundle v5.0.0 requires pagerfanta/pagerfanta ^1.0.5 -> satisfiable by pagerfanta/pagerfanta[v1.0.5, v1.1.0].
    - Can only install one of: pagerfanta/pagerfanta[v1.1.0, v2.0.1].
    - Can only install one of: pagerfanta/pagerfanta[v1.0.5, v2.0.1].
    - Installation request for pagerfanta/pagerfanta (locked at v2.0.1) -> satis
fiable by pagerfanta/pagerfanta[v2.0.1].


Installation failed, reverting ./composer.json to its original content.

C:\xampp\htdocs\project>

我已经安装了pagerfanta,但是效果很好。 请帮忙。

1 个答案:

答案 0 :(得分:0)

friendsofsymfony/elastica-bundle v5.0.0 requires pagerfanta/pagerfanta ^1.0.5 -> satisfiable by pagerfanta/pagerfanta[v1.0.5, v1.1.0].

您已经安装了pagerfanta / pagerfanta v2.0.1,因此要使用Elastica-bundle v5.0.3,您需要将其降级到v1.1.0