php composer.phar require加入插件报错,解决方法
2017-06-30 17:50
295 查看
php composer.phar require --prefer-dist yiisoft/yii2-redis 加入插件出现以下错误
[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)
报错解决
linux:/root/.composer/vendor 删除下面fxp文件夹
window:http://www.bubuko.com/infodetail-1953091.html
[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)
报错解决
linux:/root/.composer/vendor 删除下面fxp文件夹
window:http://www.bubuko.com/infodetail-1953091.html
相关文章推荐
- 无需重新编译php加入ftp扩展的解决方法
- php命令行(cli)模式下报require 加载路径错误的解决方法
- composer.phar 安装出现PHP Fatal error解决办法
- 无需重新编译php加入ftp扩展的解决方法
- php命令行(cli)模式下报require 加载路径错误的解决方法
- Composer 在 PHP 5.6 下不能获取数据的解决方法
- phpize命令在安装AMQP插件是报错phpize:Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF envir的解决方法
- sublime text 3 phpcs插件无效 UnicodeDecodeError错误解决方法
- PHP安装ionCube插件报错The Loader must appear as the first entry in the php.ini file in Unknown的解决方法
- 无需重新编译php加入ftp扩展的解决方法
- php中提示Fatal error: require(),“include_path=’.;c:\php5\pear’”错误的解决方法
- PHP读MYSQL中文乱码的解决方法
- php调用存储过程返回结果集,解决can't return a result set in the given context错误的方法
- PHP+MySQL5.0中文乱码解决方法
- 安装PHP可能遇到的问题“无法载入mysql扩展” 的解决方法
- 安装PHP可能遇到的问题“无法载入mysql扩展” 的解决方法
- php读mysql中文乱码问题解决方法
- php表单取不到值的解决方法!!!
- 解决PHP5.1.4官方模块化支援PHP5apache2.dll不支持APACHE2.2.2的方法