Yii2全新安装:vendor / bower / jquery / dist路径错误

问题描述:

我刚刚使用composer安装了yii2(高级)。我已经设置了nginx等。

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

但它不起作用:

Invalid Parameter – yii\base\InvalidParamException

The file or directory to be published does not exist: /srv/www/site/vendor/bower/jquery/dist

在文件夹 vendor / bower中,只有子文件夹 bower-assets和 jquery,依此类推在里面。但是供应商/供应商中没有jquery。

In the folder 'vendor/bower' there is the only subfolder 'bower-assets' with 'jquery', etc in it. But no jquery in vendor/bower.

如何解决此问题?

请参考安装指南。似乎您缺少资产插件:

Please, refer the installation guide. It seems that you are missing asset plugin:

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