2017-01-04 232 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更新並解決版本之間的衝突(確保你使用的是相同的)。如果它變得有點複雜,只需選擇或找到另一種選擇。