如何找到冲突的作曲家包



我正在尝试在我将基于Cilex创建的项目上更新Phpunit版本。它具有Phpunit版本~3.7。当我运行composer require phpunit/phpunit:~6 --dev时,它会打印出来:

Problem 1
    - Can only install one of: phpunit/php-code-coverage[5.2.2, 1.2.18].
    - Can only install one of: phpunit/php-code-coverage[5.2.2, 1.2.18].
    - Can only install one of: phpunit/php-code-coverage[5.2.2, 1.2.18].
    - phpunit/phpunit 6.3.0 requires phpunit/php-code-coverage ^5.2.2 -> satisfiable by phpunit/php-code-coverage[5.2.2].
    - Installation request for phpunit/phpunit ^6.3 -> satisfiable by phpunit/phpunit[6.3.0].
    - Installation request for phpunit/php-code-coverage (locked at 1.2.18) -> satisfiable by phpunit/php-code-coverage[1.2.18].

但是,它不会说哪个包裹是犯罪的包裹。作曲家文件是这个。

PS:另外,我运行了 composer require php:~7.1,以防万一,但在此之后更新phpunit仍然行不通。

需要包含--update-with-dependencies

的软件包

运行

$ composer require phpunit/phpunit:^6.0.0 --update-with-dependencies

在同一时间更新其依赖项时更新phpunit/phpunit

请参阅https://getcomposer.org/doc/03-cli.md#require:

  • - with-with依赖性:也更新新需要的软件包的依赖项。

列表原因

如果这无济于事,请运行

$ composer why-not phpunit/phpunit:^6.0.0

列出无法安装软件包的原因。

相关内容

  • 没有找到相关文章

最新更新