无法从dist下载yiisoft / yii2-composer:

时间:2018-06-06 05:30:53

标签: php yii2 composer-php

我在编写器安装/更新时遇到了一个问题。它说

Failed to download yiisoft/yii2-composer from source:
  Failed to clone https://github.com/yiisoft/yii2-composer.git via
  https, ssh protocols, aborting.

我正在使用XAMPP并使用https从bitbucket克隆我的回购。

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.4.0",
        "yiisoft/yii2": ">=2.0.6",
        "yiisoft/yii2-bootstrap": "*",
        "yiisoft/yii2-swiftmailer": "*",
        "2amigos/yii2-translateable-behavior": "*",
        "yiisoft/yii2-jui": "~2.0.0",
        "miloschuman/yii2-highcharts-widget": "5.0.*",
        "kartik-v/yii2-widgets": "*",
        "kartik-v/yii2-helpers": "*",
        "kartik-v/yii2-editable": "*",
        "kartik-v/yii2-mpdf": "*",
        "kartik-v/yii2-grid": "*",
        "kartik-v/yii2-tabs-x": "*",
        "raoul2000/yii2-bootswatch-asset": "*",
        "rmrevin/yii2-fontawesome": "~2.12",
        "2amigos/yii2-ckeditor-widget": "~1.0",
        "uran1980/yii2-jquery-essential": "dev-master",
        "xj/yii2-bootbox-widget": "*",
        "vova07/yii2-imperavi-widget": "*",
        "creocoder/yii2-nested-sets": "0.9.*",
        "kartik-v/yii2-date-range": "@dev",
        "kartik-v/yii2-builder": "@dev",
        "wbraganca/yii2-dynamicform": "*",
        "phpoffice/phpexcel": "^1.8",
        "kartik-v/yii2-field-range": "*",
        "kartik-v/yii2-export": "@dev",
        "beaten-sect0r/yii2-db-manager": "*",
        "kartik-v/yii2-widget-select2": "1.0.0",
        "drsdre/yii2-wizardwidget": "*",
        "schmunk42/yii2-giiant": "@dev"

    },
    "require-dev": {
        "codeception/codeception": "*",
        "yiisoft/yii2-debug": "*",
        "yiisoft/yii2-gii": "*",
        "yiisoft/yii2-faker": "*"
    },
    "config": {
        "fxp-asset": {
            "installer-paths": {
                "npm-asset-library": "vendor/npm",
                "bower-asset-library": "vendor/bower"
            }
        },
        "process-timeout": 1800
    },
    "repositories": [
       {
           "type": "composer",
           "url": "https://asset-packagist.org"
       }
   ]
}

两个月前我更新我的作曲家时没有任何问题。 它在我的同事正在使用的其他Linux机器上工作。 我尝试了一些解决方法,例如为作曲家设置代理,cacert.pemhttp://curl.haxx.se/ca/cacert.pem下载并在php.ini中添加了路径。 <{1}}和open_ssl.dll。dll等扩展功能已经启用。

任何人都请帮忙,因为我需要一个指导。我想我会想念我必须做的事情。

please find the complete exception details

1 个答案:

答案 0 :(得分:1)

尝试清理composer缓存。也许它会帮助你作为你的书面例子,我看到的是正确的。

 $ composer clearcache