composer error when run composer update

本篇文章由:http://xinpure.com/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

参考链接

https://github.com/yiisoft/yii2/issues/9794

posted @ 2015-11-23 17:32  xinpureZhu  阅读(333)  评论(0编辑  收藏  举报