yii2 composer.phar update is not working yii2 composer.phar update is not working windows windows

yii2 composer.phar update is not working


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.


this problem is recursive since 2014, like other than AssetsManager, permissions .... and somes php Warning or Fatal, at the begin of installation. I do not know how "Composer" elsewhere. But frankly with Yii2 is a calamity. Then as yii2 already does not need it for bugs. The accumulation of 2 it is a disaster. So...

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

With ~ you get the last version of composer-asset-plugin...But that's often not enought !!!!