作曲家要求无法安装新包 Yii2

时间:2021-02-19 08:30:26

标签: php yii2 composer-php

我的操作系统:Ubuntu 20.0 我的 PHP 版本:PHP 7.4.15

我正在开发一个基于 Yii2 框架的项目,我正在尝试使用以下命令添加一个名为“kartik-date-time-picker”的新包:

composer require kartik-v/yii2-widget-datetimepicker "dev-master"

但它失败了,并给了我这样的输出:

./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 sunhater/kcfinder (locked at dev-master) is satisfiable by sunhater/kcfinder[dev-master] but these conflict with your requirements or minimum-stability.
  Problem 2
    - Installation request for filipajdacic/yii2-cpanel-email-creator * -> satisfiable by filipajdacic/yii2-cpanel-email-creator[dev-master].
    - Removal request for filipajdacic/yii2-cpanel-email-creator == 9999999-dev
  Problem 3
    - robregonm/yii2-pdf dev-master requires php ^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 -> your PHP version (7.4.15) does not satisfy that requirement.
    - robregonm/yii2-pdf dev-master requires php ^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 -> your PHP version (7.4.15) does not satisfy that requirement.
    - robregonm/yii2-pdf dev-master requires php ^5.6 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 -> your PHP version (7.4.15) does not satisfy that requirement.
    - Installation request for robregonm/yii2-pdf dev-master -> satisfiable by robregonm/yii2-pdf[dev-master].


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

我该如何解决这个问题?我在 PHP 7.4.15 版本和 Ubuntu 20.0 操作系统上运行。

我的 composer.json :

{
    "name": "yiisoft/yii2-app-advanced",
    "description": "Yii 2 Advanced Project Template",
    "keywords": ["yii2", "framework", "advanced", "project template"],
    "homepage": "http://www.yiiframework.com/",
    "type": "project",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/yii2/issues?state=open",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii",
        "source": "https://github.com/yiisoft/yii2"
    },
    "minimum-stability": "stable",
    "require": {
        "php": ">=5.6.0",
        "yiisoft/yii2": "~2.0.14",
        "yiisoft/yii2-bootstrap": "~2.0.0",
        "yiisoft/yii2-swiftmailer": "~2.0.0 || ~2.1.0",
        "dmstr/yii2-adminlte-asset": "^2.6",
        "kartik-v/yii2-export": "*",
        "kartik-v/yii2-widget-datepicker": "@dev",
        "kartik-v/yii2-field-range": "*",
        "2amigos/yii2-multi-select-widget": "*",
        "yii2mod/yii2-rbac": "*",
        "robregonm/yii2-pdf": "dev-master",
        "2amigos/yii2-ckeditor-widget" : "*",
        "kartik-v/yii2-editable": "dev-master",
        "kartik-v/yii2-widget-select2": "dev-master",
        "wbraganca/yii2-dynamicform": "*",
        "filipajdacic/yii2-cpanel-email-creator": "*"
    },
    "require-dev": {
        "yiisoft/yii2-debug": "~2.1.0",
        "yiisoft/yii2-gii": "~2.1.0",
        "yiisoft/yii2-faker": "~2.0.0",
        "codeception/codeception": "^4.0",
        "codeception/module-asserts": "^1.0",
        "codeception/module-yii2": "^1.0",
        "codeception/module-filesystem": "^1.0",
        "codeception/verify": "~0.5.0 || ~1.1.0",
        "symfony/browser-kit": ">=2.7 <=4.2.4"
    },
    "config": {
        "process-timeout": 1800,
        "fxp-asset": {
            "enabled": false
        }
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ]
}

0 个答案:

没有答案