簡體   English   中英

使用composer錯誤安裝FOSElasticaBundle

[英]installing FOSElasticaBundle using composer error

我有以下composer.json: http : //pastebin.com/qtpJHqbW但是,當我嘗試運行composer:update時,出現以下錯誤:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package raulfraile/ladybug-bundle == 9999999-dev could not be found.
  Problem 2
    - Can only install one of: mopa/bootstrap-bundle[2.3.x-dev, 3.x-dev].
    - Can only install one of: mopa/bootstrap-bundle[3.x-dev, 2.3.x-dev].
    - Installation request for mopa/bootstrap-bundle 2.3.x-dev -> satisfiable by mopa/bootstrap-bundle[2.3.x-dev].
    - Installation request for mopa/bootstrap-bundle == 3.9999999.9999999.9999999-dev -> satisfiable by mopa/bootstrap-bundle[3.x-dev].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

如果有人感興趣,這是github上軟件包回購的鏈接 有什么想法嗎?

您需要大量的“ dev-master”版本,同時還需要"minimum-stability": "stable" -這似乎不正確。

錯誤消息抱怨在以下情況下無法解決依賴關系:

  • 無論出於何種原因,您似乎都無法在開發版本中訪問raulfraile / ladybug-bundle(聽起來很奇怪,因為您需要〜1.0,並且在packagist.org上注冊了1.0.x版本)-您是否有鎖文件項目?
  • 安裝mopa / bootstrap-bundle時會發生其他沖突-可以安裝2.3或3.x版本。

您應該運行相同的命令,並附加一些詳細標志: composer install -vvv以獲取最大信息。 這樣,您將看到創建沖突安裝請求的軟件包。

您還可以將最小穩定性降低到“ dev”,然后查看是否可以修復錯誤。 但是您應該真正考慮其含義。 盡管Composer確實努力使其他人下載運行上次更新(或初始安裝)時使用的完全相同的版本,但允許這么多開發版本聽起來是個壞主意。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM