When I update my composer to add yii2-solr
extension to my project, I encounter with an error like below:
The \"yiisoft/yii2-composer\" plugin requi
If arogachev's answer doesn't exactly work for you, here is a quick fix.
composer global require "fxp/composer-asset-plugin:*"
That should be all. You will get all your files back and you can continue