friendsofsymfony/ckeditor-bundle 与 sebastian/exporter 冲突

friendsofsymfony/ckeditor-bundle conflicts with sebastian/exporter

我在成功删除 egeloen/ckeditor-bundle 后安装 FOS/ckeditor-bundle 时遇到问题。 (我按照建议的方式做到了:https://github.com/FriendsOfSymfony/FOSCKEditorBundle/blob/HEAD//docs/migration.rst

输出为:

composer require friendsofsymfony/ckeditor-bundle      
Using version ^2.1 for friendsofsymfony/ckeditor-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - friendsofsymfony/ckeditor-bundle 2.1.0 conflicts with sebastian/exporter[1.2.2].
    - friendsofsymfony/ckeditor-bundle 2.1.0 conflicts with sebastian/exporter[1.2.2].
    - friendsofsymfony/ckeditor-bundle 2.1.0 conflicts with sebastian/exporter[1.2.2].
    - Installation request for friendsofsymfony/ckeditor-bundle ^2.1 -> satisfiable by friendsofsymfony/ckeditor-bundle[2.1.0].
    - Installation request for sebastian/exporter == 1.2.2.0 -> satisfiable by sebastian/exporter[1.2.2].


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

我也尝试过:

composer require friendsofsymfony/ckeditor-bundle:1.2.0

但是我得到了同样的错误。 symfony 3.4 有特殊版本吗?

您的其他一些依赖项可能需要 sebastian/exporter < 2.0,而 friendsofsymfony/ckeditor-bundle 不支持。

您可以通过

获取需要sebastian/exporter的软件包列表
composer why sebastian/exporter

然后您可以使用它来升级(因此它们需要更新的 sebastian/exporter)或删除软件包以启用您的捆绑包的安装。