yii2 composer update fatal error

前端 未结 4 1398
一向
一向 2021-02-13 04:09

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         


        
4条回答
  •  一向
    一向 (楼主)
    2021-02-13 04:31

    If arogachev's answer doesn't exactly work for you, here is a quick fix.

    1. Manually delete the vendor folder in your global composer installation. The folder to delete for eg. on ubuntu : /home/user/.composer/vendor
    2. Install the newer version of the plugin

    composer global require "fxp/composer-asset-plugin:*"

    That should be all. You will get all your files back and you can continue

提交回复
热议问题