The package is not available in a stable-enough version according to your minimum-stability setting

前端 未结 2 1942
再見小時候
再見小時候 2021-02-19 11:26

I don\'t really understand how Composer works with the minimum-stability setting.

I have two packages. Let\'s say, PackageA and PackageB.

2条回答
  •  -上瘾入骨i
    2021-02-19 11:51

    There are two issues:

    In create-project, by default the command uses the stable stability to look for the package to install, that's why it works if you specify dev-master but not by default. You could however also run composer create-project vendor/packagea -s dev

    After while installing dependencies, I'm guessing that your package does not exist in a version just called dev, so it can't find it if you require it like that. Requiring dev-master would probably work, like:

    {
        "name": "vendor/packagea",
        "minimum-stability": "dev",
        "require": {
            "vendor/packageb": "dev-master"
        }
    }
    

提交回复
热议问题