3

laravel envoy をインストールして次のコマンドを実行しようとすると:

composer global require "laravel/envoy=~1.0"

ターミナルでこの回答を受け取りました:

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

  Problem 1
    - Conclusion: don't install laravel/envoy v1.1.0
    - Conclusion: don't install laravel/envoy v1.0.27
    - Conclusion: don't install laravel/envoy v1.0.26
    - Conclusion: don't install laravel/envoy v1.0.25
    - Conclusion: don't install laravel/envoy v1.0.24
    - Conclusion: don't install laravel/envoy v1.0.23
    - Conclusion: don't install laravel/envoy v1.0.22
    - Conclusion: don't install laravel/envoy v1.0.21
    - Conclusion: don't install laravel/envoy v1.0.20
    - Conclusion: don't install laravel/envoy v1.0.19
    - Conclusion: don't install laravel/envoy v1.0.18
    - Conclusion: don't install laravel/envoy v1.0.17
    - Conclusion: don't install laravel/envoy v1.0.16
    - Conclusion: don't install laravel/envoy v1.0.15
    - Conclusion: don't install laravel/envoy v1.0.14
    - Conclusion: don't install laravel/envoy v1.0.13
    - Conclusion: don't install laravel/envoy v1.0.12
    - Conclusion: don't install laravel/envoy v1.0.11
    - Conclusion: don't install laravel/envoy 1.0.5
    - Conclusion: don't install laravel/envoy 1.0.3
    - Conclusion: don't install laravel/envoy 1.0.2
    - Conclusion: remove symfony/process v3.0.4
    - Installation request for laravel/envoy ~1.0 -> satisfiable by laravel/envoy[1.0.0, 1.0.2, 1.0.3, 1.0.5, v1.0.11, v1.0.12, v1.0.13, v1.0.14, v1.0.15, v1.0.16, v1.0.17, v1.0.18, v1.0.19, v1.0.20, v1.0.21, v1.0.22, v1.0.23, v1.0.24, v1.0.25, v1.0.26, v1.0.27, v1.1.0].
    - Conclusion: don't install symfony/process v3.0.4
    - laravel/envoy 1.0.0 requires symfony/process 2.4.* -> satisfiable by symfony/process[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].
    - Can only install one of: symfony/process[v2.4.0, v3.0.4].
    - Can only install one of: symfony/process[v2.4.1, v3.0.4].
    - Can only install one of: symfony/process[v2.4.10, v3.0.4].
    - Can only install one of: symfony/process[v2.4.2, v3.0.4].
    - Can only install one of: symfony/process[v2.4.3, v3.0.4].
    - Can only install one of: symfony/process[v2.4.4, v3.0.4].
    - Can only install one of: symfony/process[v2.4.5, v3.0.4].
    - Can only install one of: symfony/process[v2.4.6, v3.0.4].
    - Can only install one of: symfony/process[v2.4.7, v3.0.4].
    - Can only install one of: symfony/process[v2.4.8, v3.0.4].
    - Can only install one of: symfony/process[v2.4.9, v3.0.4].
    - Installation request for symfony/process == 3.0.4.0 -> satisfiable by symfony/process[v3.0.4].

~/.composer の composer.json ファイル:

{
    "require": {
        "laravel/installer": "^1.3"
    }
}

Laravel5.2を使用しています。

4

2 に答える 2

2

この問題の解決策を見つけました。

この問題は、Laravel 5.2 が symfony/process 2.8.* を必要とするために存在します。3.0.* と Envoy には symfony/process 2.4.* が必要で、より高いバージョンの symfony/process を使用している場合、バージョンの違いを認識するためにいくつかの問題に直面します。

解決:

~/.composer にある composer.json ファイルを開きます。

$ vi ~/.composer/composer.json

次のようになります。

{
        "require": {
            "laravel/installer": "^1.3"
        }
    }

次のように変更します。

{
    "require": {
        "laravel/envoy": "~1.0",
        "laravel/installer": "^1.3"
       }
}

今使用:

$ composer global require "laravel/envoy=~1.0"
于 2016-04-18T13:15:38.733 に答える