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

WBOY
Release: 2016-06-06 20:23:57
Original
1265 people have browsed it

最近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>
Copy after login
Copy after login

解决方法:

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

回复内容:

最近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>
Copy after login
Copy after login

解决方法:

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

<code>cd   yii/vendor/bower;
sudo cp -r bower-asset/jquery ./jquery;
sudo cp -r bower-asset/bootstrap ./bootstrap;</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template