2017-01-04 191 views
1

我正在使用Symfony2,我试图安装此软件包“troydavisson/phrets”,但仍然遇到此错误。我从来没有经历过这样的事情,所以我不知道该怎么做。我如何解决这个问题?Symfony2问题与作曲家安装包

在“结论”中,它说“结论:删除guzzlehttp/guzzle 6.2.1”,但我甚至不显示它的安装。也许我在这里错过了些什么

我运行此命令

php -d memory_limit=-1 composer.phar require troydavisson/phrets 

Problem 1 
- Installation request for troydavisson/phrets ^2.2 -> satisfiable by troydavisson/phrets[2.2]. 
- Conclusion: remove guzzlehttp/guzzle 6.2.1 
- Conclusion: don't install guzzlehttp/guzzle 6.2.1 
- troydavisson/phrets 2.2 requires guzzlehttp/guzzle >=4.0,<6.0 -> satisfiable by guzzlehttp/guzzle[4.0.0, 4.0.1, 4.0.2, 4.1.0, 4.1.1, 4.1.2, 4.1.3, 4.1.4, 4.1.5, 4.1.6, 4.1.7, 4.1.8, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 4.2.4, 5.0.0, 5.0.1, 5.0.2, 5.0.3, 5.1.0, 5.2.0, 5.3.0, 5.3.1]. 
- Can only install one of: guzzlehttp/guzzle[5.3.1, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.0.0, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.0.1, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.0.2, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.1.0, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.1.1, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.1.2, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.1.3, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.1.4, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.1.5, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.1.6, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.1.7, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.1.8, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.2.0, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.2.1, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.2.2, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.2.3, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[4.2.4, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[5.0.0, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[5.0.1, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[5.0.2, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[5.0.3, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[5.1.0, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[5.2.0, 6.2.1]. 
- Can only install one of: guzzlehttp/guzzle[5.3.0, 6.2.1]. 
- Installation request for guzzlehttp/guzzle (locked at 6.2.1) -> satisfiable by guzzlehttp/guzzle[6.2.1]. 
+0

有时将其作为软件包的一部分进行安装。检查你的composer.json和/或供应商文件夹。 –

+0

你可以显示你的composer.json吗? –

回答

1

你有2个Guzzel版本之间有冲突中使用。 Composer已经安装了Guzzel,可能它需要从另一个PHP库中获取。这给自动装载机带来了问题。

如果你专注于错误,您可以看到:

只能安装一个:guzzlehttp /狂饮

troydavisson/phrets被要求Guzzel的特定版本。要解决这个问题,你必须弄清楚哪个库正在使用Guzzel,如果你不需要它删除它或更新它。如果这不能解决你的问题,你必须fork troydavisson/phrets更新并解决版本之间的冲突(确保你使用的是相同的)。如果它变得有点复杂,只需选择或找到另一种选择。