xinpureZhu

Menu

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

— 于 共写了525个字
— 文内使用到的标签:

发表评论

电子邮件地址不会被公开。 必填项已用*标注