I installed the latest version (1.0.0. stable) of composer and in my Yii2 project I typed this:
php composer.phar update
It gives me this error
Try this one if update doesn't work.
composer global require fxp/composer-asset-plugin --no-plugins