码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2016-04-27 18:40:10      阅读:240      评论:0      收藏:0      [点我收藏+]

标签:

 

使用 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

参考[点这里]

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

标签:

原文地址:http://www.cnblogs.com/debmzhang/p/5439663.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!