yii2 composer.phar更新无效

Pat*_*cia 8 windows composer-php yii2

我在Windows 8上使用xampp,我想根据这里的描述运行composer.phar update安装Yii2-user:

http://yii2-user.readthedocs.org/en/latest/getting-started/installation.html
Run Code Online (Sandbox Code Playgroud)

但是当我这样做时,没有更新.相反,我得到了作曲家的版本号和作曲家可能的命令列表.没有错误消息,update并且在可能的命令列表中.

我也试过composer update了,但是我得到了一条错误信息:

  Problem 1
    - yiisoft/yii2 2.0.1 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl
e -> no matching package found.
    - yiisoft/yii2 2.0.0 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl
e -> no matching package found.
    - yiisoft/yii2 2.0.1 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl
e -> no matching package found.
    - Installation request for yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0
.0, 2.0.1].

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://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> f
or more details.
Run Code Online (Sandbox Code Playgroud)

aro*_*hev 9

好像你错过了执行这个命令:

composer global require "fxp/composer-asset-plugin:~1.1.1"
Run Code Online (Sandbox Code Playgroud)

它应该只执行一次.

您可以在官方文档和插件Github 页面中找到有关它的更多信息.