PHP 解决Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks()

阅读(1947)

安装Yii时,composer global require "fxp/composer-asset-plugin:~1.1.1"遇到以下报错:

PHP Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks() in ...

Linux 解决办法

rm -rf ~/.composer/vendor/fxp

Windows 解决办法

删除 %appdata%\Composer\vendor\fxp 文件夹

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