Home >Backend Development >PHP Tutorial >composer 安装yii 框架2.0.6 安装报错?

composer 安装yii 框架2.0.6 安装报错?

WBOY
WBOYOriginal
2016-06-06 20:23:571307browse

最近composer安装yii的时候页面报了这个错,应该是bower的前端资源位置改变的缘故!

<code>Invalid Parameter – yii\base\InvalidParamException
The file or directory to be published does not exist:/var/www/yii/vendor/bower/jquery/dist
</code>

解决方法:

<code>cd /yii/vendor/bower;
sudo cp -r bower-asset/jquery ./jquery;
sudo cp -r bower-asset/bootstrap ./bootstrap;</code>

回复内容:

最近composer安装yii的时候页面报了这个错,应该是bower的前端资源位置改变的缘故!

<code>Invalid Parameter – yii\base\InvalidParamException
The file or directory to be published does not exist:/var/www/yii/vendor/bower/jquery/dist
</code>

解决方法:

<code>cd /yii/vendor/bower;
sudo cp -r bower-asset/jquery ./jquery;
sudo cp -r bower-asset/bootstrap ./bootstrap;</code>

<code>cd   yii/vendor/bower;
sudo cp -r bower-asset/jquery ./jquery;
sudo cp -r bower-asset/bootstrap ./bootstrap;</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn