报错信息
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-composer
或composer update yiisoft/yii2-composer --no-plugins
获取最新版本的插件,即可。