Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

yii2 composer.phar update is not working

I'm using xampp on Windows 8 and I want to run composer.phar update for installing Yii2-useraccording do the description here:

http://yii2-user.readthedocs.org/en/latest/getting-started/installation.html

But when I do that, no update happens. Instead, I got shown the version number of composer and a list of the possible commands with composer. There is no error-message and update is in the list of the possible commands.

I have tried composer update too, but with that I'm getting an error message:

  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.
like image 374
Patricia Avatar asked Dec 30 '14 16:12

Patricia


1 Answers

Seems like you missed execution of this command:

composer global require "fxp/composer-asset-plugin:~1.1.1"

It should be executed only once.

You can find more information about it in official documentation and plugin Github page.

like image 122
arogachev Avatar answered Nov 14 '22 22:11

arogachev