@webe33

Проблемы с установкой costa-rico/yii2-images?

Добрый день,
я получаю эту ошибку всякий раз, когда я пытаюсь установить расширение.
Your requirements could not be resolved to an installable set of packages.

Problem 1
- The requested package costa-rico/yii2-images dev-master exists as costa-rico/yii2-images[1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, dev-imagesEffetcs, dev-widget] but these are rejected by your constraint.


Файл composer.json
},
"require-dev": {
    "yiisoft/yii2-debug": "~2.1.0",
    "yiisoft/yii2-gii": "~2.1.0",
    "yiisoft/yii2-faker": "~2.0.0",

    "codeception/base": "~2.3.0",
    "codeception/verify": "~0.4.0",
    "codeception/specify": "~0.4.6",
    "symfony/browser-kit": ">=2.7 <=4.2.4"
},
"config": {
    "process-timeout": 1800,
    "fxp-asset": {
        "enabled": false
    }
},
"scripts": {
    "post-install-cmd": [
        "yii\\composer\\Installer::postInstall"
    ],
    "post-create-project-cmd": [
        "yii\\composer\\Installer::postCreateProject",
        "yii\\composer\\Installer::postInstall"
    ]
},
"extra": {
    "yii\\composer\\Installer::postCreateProject": {
        "setPermission": [
            {
                "runtime": "0777",
                "web/assets": "0777",
                "yii": "0755"
            }
        ]
    },
    "yii\\composer\\Installer::postInstall": {
        "generateCookieValidationKey": [
            "config/web.php"
        ]
    }
},
"repositories": [
    {
        "type": "composer",
        "url": "https://asset-packagist.org"
    }
]
}
  • Вопрос задан
  • 404 просмотра
Пригласить эксперта
Ответы на вопрос 1
batiscaff
@batiscaff
php-разработчик широкого профиля
С некоторых пор подключить costa-rico/yii2-images:dev-master с packagist.org стало невозможно.
Но можно добавить https://github.com/CostaRico/yii2-images.git в раздел repositories, и тогда всё заработает.

{
    "require": {
        "costa-rico/yii2-images": "dev-master"
    },
    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/CostaRico/yii2-images.git"
        },
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ]
}
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы