作曲家未安装软件包

时间:2020-11-10 18:10:26

标签: php composer-php

我正在尝试安装此软件包:https://github.com/BKWLD/cloner

但是它似乎与aws软件包引起了一些冲突。正确吗?

root@abf0ab2598ee:/var/www# composer require bkwld/cloner
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Using version ^3.9 for bkwld/cloner
./composer.json has been updated
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package aws/aws-sdk-php (locked at 3.0.0, required as ^3.154) is satisfiable by aws/aws-sdk-php[3.0.0] but these conflict with your requirements or minimum-stability.


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

我做错什么了吗?

我正在使用Laravel 5.6。

1 个答案:

答案 0 :(得分:-1)

根据该错误消息,我认为您自己的应用程序composer.json在版本aws/aws-sdk-php中需要3.0.0。您尝试安装的软件包需要该软件包的更高版本。您可以在项目中使用相同的版本要求3.154

请注意:如果您更改了要求,则应该正确地测试应用程序,因为3.0.0已经使用了五年,并且该软件包中的代码可能已经发生了很大的改变