关于composer安装插件时候提示找不到fxp插件时候的解决办法
2015-10-16 20:05
726 查看
如果你在某个目录使用composer.phar,而且在别的目录页使用了composer,并没有全局安装composer的时候,不同目录之间的可能会互相干扰从而报错
导致这个错误的原因是没有全局安装composer.phar并添加到linux的系统环境变量,从而导致composer.phar之间的混乱,要仔细研究composer提高使用效率
For those who still same the problem (I have ubuntu):
just remove directory
just remove directory /home/user/.composer/vendor/fxp
这就是最终的解决办法。其实是类似于初始化的作用,不是说干扰
https://github.com/yiisoft/yii2/issues/9794 解决办法
root@tyr:/var/www/html/laravel# composer global require "laravel/installer=~1.1" Changed current directory to /root/.composer PHP Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks() in /root/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 272 Fatal error: Call to undefined method Fxp\Composer\AssetPlugin\Package\Version\VersionParser::parseLinks() in /root/.composer/vendor/fxp/composer-asset-plugin/Repository/VcsPackageFilter.php on line 272 root@tyr:/var/www/html/laravel# ll
导致这个错误的原因是没有全局安装composer.phar并添加到linux的系统环境变量,从而导致composer.phar之间的混乱,要仔细研究composer提高使用效率
For those who still same the problem (I have ubuntu):
just remove directory
/home/user/.composer/vendor/fxp
just remove directory /home/user/.composer/vendor/fxp
这就是最终的解决办法。其实是类似于初始化的作用,不是说干扰
https://github.com/yiisoft/yii2/issues/9794 解决办法
相关文章推荐
- 【BZOJ 4196】[Noi2015]软件包管理器
- Eclipse 编码背景颜色设置
- Microsoft Dynamics CRM 2015 安装 Reporting Extensions 错误总结
- scau_数青蛙
- Maple: Simplifying SDN Programming Using Algorithmic Policies
- Qt的Script、Quick、QML的关系与总结
- 面对IE保护模式的开发者生存之道
- 快速排序C++实现
- 在Google使用Borg进行大规模集群的管理 7-8
- 字符流复制
- poj 2955 Brackets(括号匹配,区间DP)
- NGUI实现技能冷却
- HDU 4010 Query on The Trees
- Myeclipse工作空间不显示自动打开,自动创建问题
- Cg texturing with alpha blending
- 数据结构栈应用之进制转换
- [LeetCode]Palindrome Partitioning 找出所有可能的组合回文
- 对图像进行读入和简单的处理
- Android笔记(三十九) Android中的数据存储——SQLite(一) create
- 浏览器相关的几个安全配置