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

composer install --prefer-dist

I get this output:

  Problem 1
    - Installation request for yiisoft/yii2-composer 2.0.x-dev -> satisfiable by yiisoft/yii2-composer[2.0.x-dev].
    - yiisoft/yii2-composer 2.0.x-dev requires composer-plugin-api 1.0.0 -> no matching package found.
  Problem 2
    - Installation request for yiisoft/yii2-composer dev-master -> satisfiable by yiisoft/yii2-composer[dev-master].
    - yiisoft/yii2-composer dev-master requires composer-plugin-api 1.0.0 -> no matching package found.
  Problem 3
    - yiisoft/yii2-composer dev-master requires composer-plugin-api 1.0.0 -> no matching package found.
    - yiisoft/yii2-composer 2.0.x-dev requires composer-plugin-api 1.0.0 -> no matching package found.
    - yiisoft/yii2 2.0.5 requires yiisoft/yii2-composer * -> satisfiable by yiisoft/yii2-composer[2.0.x-dev, dev-master].
    - Installation request for yiisoft/yii2 2.0.5 -> satisfiable by yiisoft/yii2[2.0.5].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 16 (6 by maintainers)

Most upvoted comments

@alcohol yes delete composer.lock,then composer install or update composer.lock “1.0.0” to “^1.0” ,then install 😃))

I encountered similar error as @maheshjithvar when trying to install Yii2 Advance Application using this command “composer create-project --prefer-dist yiisoft/yii2-app-advanced yii-application”. After searching i managed to resolved and install using this command “composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced yii-application”. hope this help