Yii2全新安装:vendor / bower / jquery / dist路径错误 [英] Yii2 fresh install: vendor/bower/jquery/dist path is wrong

查看:314
本文介绍了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"

这篇关于Yii2全新安装:vendor / bower / jquery / dist路径错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆