简体   繁体   English

使用composer错误安装FOSElasticaBundle

[英]installing FOSElasticaBundle using composer error

I have the following composer.json: http://pastebin.com/qtpJHqbW However when I tried to run composer: update I get the following 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.

Here's the link to the bundle repo on github if anyone is interested. 如果有人感兴趣,这是github上软件包回购的链接 Any ideas why? 有什么想法吗?

You are requiring plenty of "dev-master" versions, and at the same time require the "minimum-stability": "stable" - this does not seem to be right. 您需要大量的“ dev-master”版本,同时还需要"minimum-stability": "stable" -这似乎不正确。

The error message is complaining about dependencies not being resolvable under these circumstances: 错误消息抱怨在以下情况下无法解决依赖关系:

  • for whatever reason you seem to be unavailable to access raulfraile/ladybug-bundle in a dev version (which sound weird because you are requiring ~1.0, and 1.0.x versions are registered on packagist.org) - do you have a lockfile in your project? 无论出于何种原因,您似乎都无法在开发版本中访问raulfraile / ladybug-bundle(听起来很奇怪,因为您需要〜1.0,并且在packagist.org上注册了1.0.x版本)-您是否有锁文件项目?
  • something else creates a conflict installing mopa/bootstrap-bundle - either version 2.3 or 3.x can be installed. 安装mopa / bootstrap-bundle时会发生其他冲突-可以安装2.3或3.x版本。

You should run the same command with some verbose flags attached: composer install -vvv for maximum information. 您应该运行相同的命令,并附加一些详细标志: composer install -vvv以获取最大信息。 That way you will get presented the packages that create the conflicting install requests. 这样,您将看到创建冲突安装请求的软件包。

You could also lower the minimum stability to "dev" and see if that fixes the error. 您还可以将最小稳定性降低到“ dev”,然后查看是否可以修复错误。 But you should really think about the implications. 但是您应该真正考虑其含义。 Although Composer does try hard to enable others to download the exactly same versions that were used when the last update (or initial install) was run, it sounds like a bad idea to allow that many development versions. 尽管Composer确实努力使其他人下载运行上次更新(或初始安装)时使用的完全相同的版本,但允许这么多开发版本听起来是个坏主意。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM