Yii2 composer报错处理

报错信息

  Problem 1
    - yiisoft/yii2-composer 2.0.6 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.2.0] but it does not match the constraint.
    - yiisoft/yii2 2.0.15.1 requires yiisoft/yii2-composer ~2.0.4 -> satisfiable by yiisoft/yii2-composer[2.0.6].
    - yiisoft/yii2 is locked to version 2.0.15.1 and an update of this package was not requested.

解决 运行composer update yiisoft/yii2-composercomposer update yiisoft/yii2-composer --no-plugins获取最新版本的插件,即可。

Published At