Yii作曲家的依赖关系未更新

时间:2018-08-13 15:31:58

标签: yii2 composer-php

我在尝试为Yii项目更新我的作曲家依赖项时遇到问题。我目前将最低稳定度设置为“稳定”。

关于如何进行的任何建议?

如果有人可以提出任何很棒的建议。

我尝试过的

  • 我已经删除了供应商目录并重新安装了依赖项。
  • 我已从composer.json文件中删除了软件包并尝试 更新。

问题:

Me-MacBook-Pro:ETS-Yii2 me$ composer update
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
- Installation request for abhishek/authorize.net-yii2 * -> satisfiable by abhishek/authorize.net-yii2[dev-master].
- Removal request for abhishek/authorize.net-yii2 == 9999999-dev
Problem 2
- yiisoft/yii2-jui 2.0.7 requires bower-asset/jquery-ui ~1.12.1 -> no matching package found.
- yiisoft/yii2-jui 2.0.6 requires bower-asset/jquery-ui 1.11.*@stable -> no matching package found.
- yiisoft/yii2-jui 2.0.5 requires bower-asset/jquery-ui 1.11.*@stable -> no matching package found.
- yiisoft/yii2-jui 2.0.4 requires bower-asset/jquery-ui 1.11.*@stable -> no matching package found.
- yiisoft/yii2-jui 2.0.3 requires bower-asset/jquery-ui 1.11.*@stable -> no matching package found.
- yiisoft/yii2-jui 2.0.2 requires bower-asset/jquery-ui 1.11.*@stable -> no matching package found.
- yiisoft/yii2-jui 2.0.1 requires bower-asset/jquery-ui 1.11.*@stable -> no matching package found.
- yiisoft/yii2-jui 2.0.0 requires bower-asset/jquery-ui 1.11.*@stable -> no matching package found.
- Removal request for yiisoft/yii2-jui == 2.0.0.0-beta
- Installation request for yiisoft/yii2-jui ^2.0 -> satisfiable by yiisoft/yii2-jui[2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.0-beta].

Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Composer.json文件

{
"name": "yiisoft/yii2-app-basic",
"description": "Yii 2 Basic Project Template",
"keywords": ["yii2", "framework", "basic", "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.4.0",
    "yiisoft/yii2": "~2.0.6",
    "yiisoft/yii2-bootstrap": "~2.0.0",
    "yiisoft/yii2-swiftmailer": "~2.0.0",
    "dmstr/yii2-adminlte-asset": "2.*",
    "2amigos/yii2-ckeditor-widget": "^2.0",
    "2amigos/yii2-tinymce-widget": "*",
    "vova07/yii2-imperavi-widget": "*",
    "abhishek/authorize.net-yii2": "*",
    "yurkinx/yii2-image": "*",
    "kartik-v/yii2-widget-timepicker": "*",
    "kartik-v/yii2-widget-datepicker": "@dev",
    "mpdf/mpdf": "^6.1",
    "yiisoft/yii2-jui": "^2.0",
    "fedemotta/yii2-aws-sdk": "*"
},
"require-dev": {
    "yiisoft/yii2-debug": "~2.0.0",
    "yiisoft/yii2-gii": "~2.0.0",
    "yiisoft/yii2-faker": "~2.0.0",

    "codeception/base": "^2.2.3",
    "codeception/verify": "~0.3.1",
    "codeception/specify": "~0.4.3"
},
"config": {
    "process-timeout": 1800
},
"scripts": {
    "post-create-project-cmd": [
        "yii\\composer\\Installer::postCreateProject"
    ]
},
"extra": {
    "yii\\composer\\Installer::postCreateProject": {
        "setPermission": [
            {
                "runtime": "0777",
                "web/assets": "0777",
                "yii": "0755"
            }
        ],
        "generateCookieValidationKey": [
            "config/web.php"
        ]
    },
    "asset-installer-paths": {
        "npm-asset-library": "vendor/npm",
        "bower-asset-library": "vendor/bower"
    }
}
}

2 个答案:

答案 0 :(得分:0)

尝试像下面这样使用“ config”代替“ extra”:

"config" : {
    "process-timeout" : 1800,
    "fxp-asset" : {
        "yii\\composer\\Installer::postCreateProject" : {
            "setPermission" : [{
                    "runtime" : "0777",
                    "web/assets" : "0777",
                    "yii" : "0755"
                }
            ],
            "generateCookieValidationKey" : [
                "config/web.php"
            ]
        },
        "installer-paths" : {
            "npm-asset-library" : "vendor/npm",
            "bower-asset-library" : "vendor/bower"
        }
    }
}

答案 1 :(得分:0)

这里有两个问题:

  1. 对于abhishek/authorize.net-yii2软件包,没有稳定的发行版。因此,您需要将版本约束从*更改为dev-master

  2. 您的第二个问题是yiisoft/yii2-jui要求bower-asset/jquery-ui这是一个虚拟包。虚拟软件包意味着Composer无法选择要安装的软件包,但是作为用户,您必须确定哪个软件包为特定虚拟软件包提供了最佳实施。我对Yii一无所知,因此无法通过此决定为您提供帮助,但是您可以在https://packagist.org/providers/bower-asset/jquery-ui看到所有提供bower-asset/jquery-ui实现的软件包。解决此问题后,您会看到类似的问题,yiisoft/yii2要求bower-asset/jquery也是一个虚拟包。