Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist

 

使用 composer 安装 laravel 时报错, 如下:

[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\DependencyResol
ver\Pool $pool, $name, $bypassFilters = false)

 

按如下命令可解决

sudo composer global update fxp/composer-asset-plugin --no-plugins

php composer.phar global update fxp/composer-asset-plugin --no-plugins

参考[点这里]

posted @ 2016-04-27 17:25  Debm.Zhang  阅读(...)  评论(...编辑  收藏