symfony - 安装 fos/elasticabundle,需要 pagerfanta 版本
问题描述
我想安装 FOSElasticaBundle,但出现错误。
我不知道该怎么办,系统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,但效果很好。请帮忙。
解决方案
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
推荐阅读
- swift - 您可以将多个子路径作为单个路径,并且只填充一次吗?
- php - 我需要在下拉列表中进行多项选择
- go - 如何获取 golang 中显示的 fmt.Printf 或 fmt.Prinln 行号?
- javascript - alpine.js 嵌套 for 循环 - x-show 仅在子项上
- vue.js - Vue.js 组件 - 处理来自消费项目的组件库中的翻译,无需重复
- java - Eclipse Oxygen 3.a 不工作 MacOS Big Sur java 1.8.0_271
- azure-devops - Azure 构建管道偶发错误,[CredentialProvider]设备流身份验证失败
- android - 在泛型类型中使用 out 关键字而不会出现编译错误的规则是什么
- string - 从空格分隔的单行用户输入中制作学生字典,其中名称将是键,考试编号列表将是值
- matlab - Matlab 脚本无法根据另一列的值正确计算分类变量