Composer installation fails ?

Newbie question here…




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

Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.

Changed current directory to /home/pio1/.composer

Warning: This development build of composer is over 60 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.

./composer.json has been updated

Loading composer repositories with package information

Updating dependencies (including require-dev)

  - Installing fxp/composer-asset-plugin (v1.1.1)

    Loading from cache


PHP Fatal error:  Call to undefined method Composer\Package\Loader\ArrayLoader::parseLinks() in /home/pio1/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 279


Fatal error: Call to undefined method Composer\Package\Loader\ArrayLoader::parseLinks() in /home/pio1/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 279






Any Ideas what I am missing ?

Your composer version is old.

Try:


/usr/local/bin/composer self-update

Hi,

i have the same issue.

After i execute composer self-update i get the message:

You are already using composer version e8abc90b923250527a2d68712b663f0f41790594.

after executing

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

i get the former error message:

Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks() in C:\Users\Gunter Lorenz\AppData\Roaming\Composer\vendor\fxp\composer-asset-plugin\Repository\VcsPackageFilter.php on line 272

Does anybody know something about this?

Thank You!

Delete C:\Users\Gunter Lorenz\AppData\Roaming\Composer\vendor\fxp