使用composer安装Yii 2.0时遇到的一个问题

WBOY
Release: 2016-08-08 09:27:15
Original
964 people have browsed it

Yii 2.0相对1.0版本变化比较大,连安装方式都不一样了(变复杂了),按照官方网站的说明,他们建议使用composer这个程序来下载和安装,好吧,那我就按照他们的建议来安装,下载和安装好composer后,就输入安装指导文档上的命令来下载composer的插件,结果提示下面错误:


去google了一下,发现如果是在windows上使用exe文件来安装composer的话,上面安装插件的正确命令应该是:

composer global require "fxp/composer-asset-plugin:1.0.0"
Copy after login

同理,后面安装Yii 2.0的命令也是一样,只需要将命令中的php composer.phar替换成composer即可

以上就介绍了使用composer安装Yii 2.0时遇到的一个问题,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

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 [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!