由于稳定性,Composer拒绝包

问题描述 投票:0回答:1

我创建了一个包,这是它的composer.json:

{
    "name": "faustuzas/theme-downloader",
    "description": "Easy to use bootstrap theme downloader",
    "type": "command",
    "require": {
        "php": ">=5.6.0",
        "guzzlehttp/guzzle": "^6.3"
    },
    "license": "MIT",
    "authors": [
        {
            "name": "Faustas Butkus",
            "email": "[email protected]"
        }
    ],
    "minimum-stability": "stable"
}

但是当我试图通过作曲家要求它时:composer require faustuzas/theme-downloader

我收到这个错误:enter image description here

问题出在哪儿?

php composer-php package
1个回答
3
投票

没有必要使用"minimum-stability": "stable",因为它默认设置为“稳定”。你有一个分支,没有标签,所以packagist将你的包显示为dev-master,这是不稳定的。尝试创建新的分支,例如1.x并添加标签,例如1.0.0然后作曲家再次要求。

© www.soinside.com 2019 - 2024. All rights reserved.