mynetwork:yii2-pjax-examples davidnewcomb$ php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
Installation request for yiisoft/yii2-composer 2.0.3 -> satisfiable by yiisoft/yii2-composer[2.0.3].
yiisoft/yii2-composer 2.0.3 requires composer-plugin-api 1.0.0 -> no matching package found.
Problem 2
yiisoft/yii2-composer 2.0.3 requires composer-plugin-api 1.0.0 -> no matching package found.
yiisoft/yii2 2.0.3 requires yiisoft/yii2-composer * -> satisfiable by yiisoft/yii2-composer[2.0.3].
Installation request for yiisoft/yii2 2.0.3 -> satisfiable by yiisoft/yii2[2.0.3].
Thank you for your suggestion @davidnewcomb.
It would be irresponsible of me to update dependencies without testing.
And there's no time to spare for testing.
I will leave a notice in the description/readme.
Followed instructions but install failed.
Ran
update
instead and everything was fine:Suggested fix either update docs to say
update
ifinstall
fails or update thecomposer.lock
file.