composer error when run composer update
错误
很多时候即使是常用的命令也会出现一些奇奇怪怪的错误, 难以预知。。。
Input:
composer update
Output:
PHP Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks() in /root/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 272
Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks() in /root/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 272
解决方法
rm -rf ~/.composer/vendor/fxp