1.经过搜索各种yii安装博客上,都没能正确安装yii,出现当前错误:
Problem 1
- Installation request for fxp/composer-asset-plugin 1.0.0-beta1 -> satisfia
ble by fxp/composer-asset-plugin[v1.0.0-beta1].
- fxp/composer-asset-plugin v1.0.0-beta1 requires composer-plugin-api 1.0.0
-> no matching package found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your min
imum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more det
ails.
我是安装:http://jingyan.baidu.com/article/9158e000442cb6a25412281a.html进行安装的。
只是其中有一步是这样进行修改的:其中第三步执行语句是这样的(composer global require "fxp/composer-asset-plugin:1.0.0-beta1")
我们将其修改为:
composer global require "fxp/composer-asset-plugin:1.2.0" 版本号是将1.0.0-beta1 修改成1.2.0即可
当然后面需要自己输入token,在github上注册
这样输入我们需要的token即可,记下来就是等等等....