How can I update Composer and not end up with the following error each time I try to install a package:
PHP Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks()
I am currently getting this error whenever I try to install a package with the old version of Composer:
rmrevin/yii2-fontawesome Invalid version string "v4.1.*"
do you have composer assets plugin installed?
composer global require "fxp/composer-asset-plugin:~1.1.1"
looks like i already have same issue in past. please, check the link. in the end of topic i described solution which helps me
Yes, this is due to the Composer asset plugin being out of order.
Install version 1.1.1 as Alirz23 said. That will fix the error.
Before doing that, update Composer itself.
The problem was that one of the packages I had installed had a dependency with another package and there was a typo in the entry for it in composer.json