yii2 composer update fatal error

前端 未结 4 1399
一向
一向 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:34

    Bower-Asset skip way:

    You can require yidas/yii2-composer-bower-skip before yiisoft/yii2 in composer.json file:

    "require": {
        "php": ">=5.4.0",      
        "yidas/yii2-composer-bower-skip": "~2.0.0", 
        "yiisoft/yii2": ">=2.0.5",
        "yiisoft/yii2-bootstrap": "*",
        ...
    

    Then run composer update.

    This case is for that you don't need the update for Bower.

    See https://github.com/yidas/yii2-composer-bower-skip

提交回复
热议问题