Yii2 fresh install: vendor/bower/jquery/dist path is wrong

前端 未结 5 1498
星月不相逢
星月不相逢 2021-02-08 15:37

I just installed yii2 (advanced) using composer. I\'ve setup nginx, etc.

But it doesn\'t work:

Invalid Parameter – yii\\base\\InvalidParamException

The          


        
5条回答
  •  鱼传尺愫
    2021-02-08 16:25

    Check your composer.json file in the root of your project. You should have a section that look slike this;

        "asset-installer-paths": {
            "bower-asset-library": "vendor/bower-assets"
        }
    

    This tells composer where to locate the bower files library. You may need to run composer update afterwards to get hte locations updated.

提交回复
热议问题