【问题标题】:Cannot install global homestead: Your requirements could not be resolved无法安装全球家园:无法解决您的要求
【发布时间】:2016-04-03 19:01:54
【问题描述】:

我正在尝试在 OSX 10.11 上安装宅基地。我想启动并运行构建 laravel 应用程序。我无法从命令行运行homestead。当我尝试全局安装时,出现错误:

$ composer global require "laravel/homestead=~2.0"
Changed current directory to /Users/connorleech/.composer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Conclusion: don't install laravel/homestead v2.1.8
    - Conclusion: don't install laravel/homestead v2.1.7
    - Conclusion: don't install laravel/homestead v2.1.6
    - Conclusion: don't install laravel/homestead v2.1.5
    - Conclusion: don't install laravel/homestead v2.1.4
    - Conclusion: don't install laravel/homestead v2.1.3
    - Conclusion: don't install laravel/homestead v2.1.2
    - Conclusion: don't install laravel/homestead v2.1.1
    - Conclusion: don't install laravel/homestead v2.1.0
    - Conclusion: don't install laravel/homestead v2.0.17
    - Conclusion: don't install laravel/homestead v2.0.16
    - Conclusion: don't install laravel/homestead v2.0.15
    - Conclusion: don't install laravel/homestead v2.0.14
    - Conclusion: don't install laravel/homestead v2.0.13
    - Conclusion: don't install laravel/homestead v2.0.12
    - Conclusion: don't install laravel/homestead v2.0.11
    - Conclusion: don't install laravel/homestead v2.0.10
    - Conclusion: don't install laravel/homestead v2.0.9
    - Conclusion: don't install laravel/homestead v2.0.8
    - Conclusion: don't install laravel/homestead v2.0.7
    - Conclusion: don't install laravel/homestead v2.0.6
    - Conclusion: don't install laravel/homestead v2.0.5
    - Conclusion: don't install laravel/homestead v2.0.4
    - Conclusion: don't install laravel/homestead v2.0.3
    - Conclusion: don't install laravel/homestead v2.0.2
    - Conclusion: don't install laravel/homestead v2.0.1
    - Conclusion: remove symfony/console v3.0.1
    - Installation request for laravel/homestead ~2.0 -> satisfiable by laravel/homestead[v2.0.0, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9, v2.1.0, v2.1.1, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8].
    - Conclusion: don't install symfony/console v3.0.1
    - laravel/homestead v2.0.0 requires symfony/console ~2.0 -> satisfiable by symfony/console[2.0.4, 2.0.5, 2.0.6, 2.0.7, v2.0.10, v2.0.12, v2.0.13, v2.0.14, v2.0.15, v2.0.16, v2.0.17, v2.0.18, v2.0.19, v2.0.20, v2.0.21, v2.0.22, v2.0.23, v2.0.24, v2.0.25, v2.0.9, v2.1.0, v2.1.1, v2.1.10, v2.1.11, v2.1.12, v2.1.13, v2.1.2, v2.1.3, v2.1.4, v2.1.5, v2.1.6, v2.1.7, v2.1.8, v2.1.9, v2.2.0, v2.2.1, v2.2.10, v2.2.11, v2.2.2, v2.2.3, v2.2.4, v2.2.5, v2.2.6, v2.2.7, v2.2.8, v2.2.9, v2.3.0, v2.3.1, v2.3.10, v2.3.11, v2.3.12, v2.3.13, v2.3.14, v2.3.15, v2.3.16, v2.3.17, v2.3.18, v2.3.19, v2.3.2, v2.3.20, v2.3.21, v2.3.22, v2.3.23, v2.3.24, v2.3.25, v2.3.26, v2.3.27, v2.3.28, v2.3.29, v2.3.3, v2.3.30, v2.3.31, v2.3.32, v2.3.33, v2.3.34, v2.3.35, v2.3.36, v2.3.4, v2.3.5, v2.3.6, v2.3.7, v2.3.8, v2.3.9, v2.4.0, v2.4.1, v2.4.10, v2.4.2, v2.4.3, v2.4.4, v2.4.5, v2.4.6, v2.4.7, v2.4.8, v2.4.9, v2.5.0, v2.5.1, v2.5.10, v2.5.11, v2.5.12, v2.5.2, v2.5.3, v2.5.4, v2.5.5, v2.5.6, v2.5.7, v2.5.8, v2.5.9, v2.6.0, v2.6.1, v2.6.10, v2.6.11, v2.6.12, v2.6.2, v2.6.3, v2.6.4, v2.6.5, v2.6.6, v2.6.7, v2.6.8, v2.6.9, v2.7.0, v2.7.1, v2.7.2, v2.7.3, v2.7.4, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.8.0, v2.8.1].
    - Can only install one of: symfony/console[v2.3.0, v3.0.1].
    - Can only install one of: symfony/console[v2.3.1, v3.0.1].
    - Can only install one of: symfony/console[v2.3.10, v3.0.1].
    - Can only install one of: symfony/console[v2.3.11, v3.0.1].
    - Can only install one of: symfony/console[v2.3.12, v3.0.1].
    - Can only install one of: symfony/console[v2.3.13, v3.0.1].
    - Can only install one of: symfony/console[v2.3.14, v3.0.1].
    - Can only install one of: symfony/console[v2.3.15, v3.0.1].
    - Can only install one of: symfony/console[v2.3.16, v3.0.1].
    - Can only install one of: symfony/console[v2.3.17, v3.0.1].
    - Can only install one of: symfony/console[v2.3.18, v3.0.1].
    - Can only install one of: symfony/console[v2.3.19, v3.0.1].
    - Can only install one of: symfony/console[v2.3.2, v3.0.1].
    - Can only install one of: symfony/console[v2.3.20, v3.0.1].
    - Can only install one of: symfony/console[v2.3.21, v3.0.1].
    - Can only install one of: symfony/console[v2.3.22, v3.0.1].
    - Can only install one of: symfony/console[v2.3.23, v3.0.1].
    - Can only install one of: symfony/console[v2.3.24, v3.0.1].
    - Can only install one of: symfony/console[v2.3.25, v3.0.1].
    - Can only install one of: symfony/console[v2.3.26, v3.0.1].
    - Can only install one of: symfony/console[v2.3.27, v3.0.1].
    - Can only install one of: symfony/console[v2.3.28, v3.0.1].
    - Can only install one of: symfony/console[v2.3.29, v3.0.1].
    - Can only install one of: symfony/console[v2.3.3, v3.0.1].
    - Can only install one of: symfony/console[v2.3.30, v3.0.1].
    - Can only install one of: symfony/console[v2.3.31, v3.0.1].
    - Can only install one of: symfony/console[v2.3.32, v3.0.1].
    - Can only install one of: symfony/console[v2.3.33, v3.0.1].
    - Can only install one of: symfony/console[v2.3.34, v3.0.1].
    - Can only install one of: symfony/console[v2.3.35, v3.0.1].
    - Can only install one of: symfony/console[v2.3.36, v3.0.1].
    - Can only install one of: symfony/console[v2.3.4, v3.0.1].
    - Can only install one of: symfony/console[v2.3.5, v3.0.1].
    - Can only install one of: symfony/console[v2.3.6, v3.0.1].
    - Can only install one of: symfony/console[v2.3.7, v3.0.1].
    - Can only install one of: symfony/console[v2.3.8, v3.0.1].
    - Can only install one of: symfony/console[v2.3.9, v3.0.1].
    - Can only install one of: symfony/console[v2.4.0, v3.0.1].
    - Can only install one of: symfony/console[v2.4.1, v3.0.1].
    - Can only install one of: symfony/console[v2.4.10, v3.0.1].
    - Can only install one of: symfony/console[v2.4.2, v3.0.1].
    - Can only install one of: symfony/console[v2.4.3, v3.0.1].
    - Can only install one of: symfony/console[v2.4.4, v3.0.1].
    - Can only install one of: symfony/console[v2.4.5, v3.0.1].
    - Can only install one of: symfony/console[v2.4.6, v3.0.1].
    - Can only install one of: symfony/console[v2.4.7, v3.0.1].
    - Can only install one of: symfony/console[v2.4.8, v3.0.1].
    - Can only install one of: symfony/console[v2.4.9, v3.0.1].
    - Can only install one of: symfony/console[v2.5.0, v3.0.1].
    - Can only install one of: symfony/console[v2.5.1, v3.0.1].
    - Can only install one of: symfony/console[v2.5.10, v3.0.1].
    - Can only install one of: symfony/console[v2.5.11, v3.0.1].
    - Can only install one of: symfony/console[v2.5.12, v3.0.1].
    - Can only install one of: symfony/console[v2.5.2, v3.0.1].
    - Can only install one of: symfony/console[v2.5.3, v3.0.1].
    - Can only install one of: symfony/console[v2.5.4, v3.0.1].
    - Can only install one of: symfony/console[v2.5.5, v3.0.1].
    - Can only install one of: symfony/console[v2.5.6, v3.0.1].
    - Can only install one of: symfony/console[v2.5.7, v3.0.1].
    - Can only install one of: symfony/console[v2.5.8, v3.0.1].
    - Can only install one of: symfony/console[v2.5.9, v3.0.1].
    - Can only install one of: symfony/console[v2.6.0, v3.0.1].
    - Can only install one of: symfony/console[v2.6.1, v3.0.1].
    - Can only install one of: symfony/console[v2.6.10, v3.0.1].
    - Can only install one of: symfony/console[v2.6.11, v3.0.1].
    - Can only install one of: symfony/console[v2.6.12, v3.0.1].
    - Can only install one of: symfony/console[v2.6.2, v3.0.1].
    - Can only install one of: symfony/console[v2.6.3, v3.0.1].
    - Can only install one of: symfony/console[v2.6.4, v3.0.1].
    - Can only install one of: symfony/console[v2.6.5, v3.0.1].
    - Can only install one of: symfony/console[v2.6.6, v3.0.1].
    - Can only install one of: symfony/console[v2.6.7, v3.0.1].
    - Can only install one of: symfony/console[v2.6.8, v3.0.1].
    - Can only install one of: symfony/console[v2.6.9, v3.0.1].
    - Can only install one of: symfony/console[v2.7.0, v3.0.1].
    - Can only install one of: symfony/console[v2.7.1, v3.0.1].
    - Can only install one of: symfony/console[v2.7.2, v3.0.1].
    - Can only install one of: symfony/console[v2.7.3, v3.0.1].
    - Can only install one of: symfony/console[v2.7.4, v3.0.1].
    - Can only install one of: symfony/console[v2.7.5, v3.0.1].
    - Can only install one of: symfony/console[v2.7.6, v3.0.1].
    - Can only install one of: symfony/console[v2.7.7, v3.0.1].
    - Can only install one of: symfony/console[v2.7.8, v3.0.1].
    - Can only install one of: symfony/console[v2.8.0, v3.0.1].
    - Can only install one of: symfony/console[v2.8.1, v3.0.1].
    - Can only install one of: symfony/console[2.0.4, v3.0.1].
    - Can only install one of: symfony/console[2.0.5, v3.0.1].
    - Can only install one of: symfony/console[2.0.6, v3.0.1].
    - Can only install one of: symfony/console[2.0.7, v3.0.1].
    - Can only install one of: symfony/console[v2.0.10, v3.0.1].
    - Can only install one of: symfony/console[v2.0.12, v3.0.1].
    - Can only install one of: symfony/console[v2.0.13, v3.0.1].
    - Can only install one of: symfony/console[v2.0.14, v3.0.1].
    - Can only install one of: symfony/console[v2.0.15, v3.0.1].
    - Can only install one of: symfony/console[v2.0.16, v3.0.1].
    - Can only install one of: symfony/console[v2.0.17, v3.0.1].
    - Can only install one of: symfony/console[v2.0.18, v3.0.1].
    - Can only install one of: symfony/console[v2.0.19, v3.0.1].
    - Can only install one of: symfony/console[v2.0.20, v3.0.1].
    - Can only install one of: symfony/console[v2.0.21, v3.0.1].
    - Can only install one of: symfony/console[v2.0.22, v3.0.1].
    - Can only install one of: symfony/console[v2.0.23, v3.0.1].
    - Can only install one of: symfony/console[v2.0.24, v3.0.1].
    - Can only install one of: symfony/console[v2.0.25, v3.0.1].
    - Can only install one of: symfony/console[v2.0.9, v3.0.1].
    - Can only install one of: symfony/console[v2.1.0, v3.0.1].
    - Can only install one of: symfony/console[v2.1.1, v3.0.1].
    - Can only install one of: symfony/console[v2.1.10, v3.0.1].
    - Can only install one of: symfony/console[v2.1.11, v3.0.1].
    - Can only install one of: symfony/console[v2.1.12, v3.0.1].
    - Can only install one of: symfony/console[v2.1.13, v3.0.1].
    - Can only install one of: symfony/console[v2.1.2, v3.0.1].
    - Can only install one of: symfony/console[v2.1.3, v3.0.1].
    - Can only install one of: symfony/console[v2.1.4, v3.0.1].
    - Can only install one of: symfony/console[v2.1.5, v3.0.1].
    - Can only install one of: symfony/console[v2.1.6, v3.0.1].
    - Can only install one of: symfony/console[v2.1.7, v3.0.1].
    - Can only install one of: symfony/console[v2.1.8, v3.0.1].
    - Can only install one of: symfony/console[v2.1.9, v3.0.1].
    - Can only install one of: symfony/console[v2.2.0, v3.0.1].
    - Can only install one of: symfony/console[v2.2.1, v3.0.1].
    - Can only install one of: symfony/console[v2.2.10, v3.0.1].
    - Can only install one of: symfony/console[v2.2.11, v3.0.1].
    - Can only install one of: symfony/console[v2.2.2, v3.0.1].
    - Can only install one of: symfony/console[v2.2.3, v3.0.1].
    - Can only install one of: symfony/console[v2.2.4, v3.0.1].
    - Can only install one of: symfony/console[v2.2.5, v3.0.1].
    - Can only install one of: symfony/console[v2.2.6, v3.0.1].
    - Can only install one of: symfony/console[v2.2.7, v3.0.1].
    - Can only install one of: symfony/console[v2.2.8, v3.0.1].
    - Can only install one of: symfony/console[v2.2.9, v3.0.1].
    - Installation request for symfony/console == 3.0.1.0 -> satisfiable by symfony/console[v3.0.1].


Installation failed, reverting ./composer.json to its original content.

这些是我正在运行的版本。

$ composer --version
Composer version 1.0-dev (d6ae9a0529e1f39c4c7f9b2f29fff019d79cd1fb) 2015-12-22 20:44:41
$ laravel --version
Laravel Installer version 1.3.1
$ php --version
PHP 5.5.30 (cli) (built: Oct 23 2015 17:21:45) 
$ vagrant --version
Vagrant 1.8.1

【问题讨论】:

  • 天哪,这行得通!不知道。所有文档都说 2.0。 laravel 让事情进展得很快
  • 如果您想将此作为答案发布,我会接受它

标签: php laravel laravel-5 vagrant homestead


【解决方案1】:

需要运行

$ composer global require "laravel/homestead=~3.0"

【讨论】:

  • 我刚买了一台新笔记本电脑,花了太多时间试图解决这个问题。我什至没有一直滚动到 laravel 警告:/
【解决方案2】:

截至 2020 年,我需要运行 7.0 才能安装

$ composer global require "laravel/homestead=~7.0"

【讨论】:

    【解决方案3】:

    您的需求无法解析为一组可安装的软件包。

    问题 1 - 根 composer.json 需要 laravel/homestead ^13.0 -> 可满足 laravel/homestead[v13.0.0, v13.0.1, v13.0.2]。 - laravel/homestead[v13.0.0, ..., v13.0.2] 需要 symfony/console ~5.1 -> 找到 symfony/console[v5.1.0, ..., v5.4.1] 但软件包固定为 v2。 7.51(锁定文件版本)通过部分更新和那个版本不匹配。确保将其列为更新命令的参数。

    使用选项 --with-all-dependencies (-W) 允许升级、降级和删除当前锁定到特定版本的软件包。 您还可以尝试使用显式版本约束重新运行 composer require,例如“composer require laravel/homestead:*”来确定是否有任何版本可安装,或者“composer require laravel/homestead:^2.1”如果你知道你需要哪个。

    安装失败,正在将 ./composer.json 和 ./composer.lock 还原为其原始内容。

    【讨论】:

    • 如果您有新问题,请点击 按钮提出问题。如果有助于提供上下文,请包含指向此问题的链接。 - From Review
    猜你喜欢
    • 1970-01-01
    • 2016-06-13
    • 1970-01-01
    • 2018-02-04
    • 2018-09-16
    • 2020-09-13
    • 2014-08-27
    • 1970-01-01
    相关资源
    最近更新 更多