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

前端 未结 2 1937
再見小時候
再見小時候 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条回答
  • 2021-02-19 11:34

    How did I fix this?

    After installing Composer, run the following command to install the Composer Asset Plugin:

    php composer.phar global require "fxp/composer-asset-plugin:^1.2.0"
    

    Now choose one of the application templates to start installing Yii 2.0. An application template is a package that contains a skeleton of the Web application written in Yii.

    0 讨论(0)
  • 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"
        }
    }
    
    0 讨论(0)
提交回复
热议问题