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

后端 未结 7 2083
野趣味
野趣味 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:54

    Finally fixed it, just followed the steps on the UPGRADE.md doc

    If you are using Composer to upgrade Yii, you should run the following command first (once for all) to install the composer-asset-plugin:

    composer global require "fxp/composer-asset-plugin:^1.2.0"
    

    (See http://www.yiiframework.com/doc-2.0/guide-start-installation.html#installing-from-composer for latest version.)

    You may also need to add the following code to your project's composer.json file :

    "extra": {
        "asset-installer-paths": {
            "npm-asset-library": "vendor/npm",
            "bower-asset-library": "vendor/bower"
        }
    }
    

    Hopes this helps :)

    0 讨论(0)
提交回复
热议问题