今天把composer升级到 d401f6e95cca835d165c61648327fc1fa062ba31 版本之后,再安装其他包的时候,出现错误提示
[ReflectionException] Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist [ErrorException] Declaration of Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository::whatProvides() should be compatible with Composer\Repository\ComposerRepository::whatProvides(Composer\DependencyResolver\Pool $pool, $name, $bypassFilters = false)
显然是FXP包又出问题了,上次也出现过一次,也是这个插件的问题…… 单独把这个包升级一下吧,执行
composer global update fxp/composer-asset-plugin --no-plugins
OK,已经没问题了。
查了一下,果然是fxp的bug:https://github.com/composer/composer/issues/2661
composer果然是越用越喜欢,人都变懒了……
暂无评论