Cannot update yii2 via composer bower-asset/jquery could not be found

后端 未结 7 2115
野趣味
野趣味 2020-12-12 16:54

I was updating my yii2 via composer then reverted back to the old beta version.

Here is the error on my composer:

Loading composer repositories with          


        
7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-12 17:42

    If you don't need the update for bower-asset, 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": "~2.0.0"
    }
    

    After that, you can update Composer smoothly without bower-asset.

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

提交回复
热议问题