Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tenzan's avatar

composer global require "laravel/installer" issue

Hello!

I'm getting errors below when I try composer global require "laravel/installer". It seems, there have been alike issues, but I couldn't solution...

➜  ~ composer global require "laravel/installer"
Changed current directory to /Users/askar/.composer
Using version ^2.0 for laravel/installer
./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/installer v2.0.1
    - Conclusion: remove guzzlehttp/guzzle 5.3.2
    - Installation request for laravel/installer ^2.0 -> satisfiable by laravel/installer[v2.0.0, v2.0.1].
    - Conclusion: don't install guzzlehttp/guzzle 5.3.2
    - laravel/installer v2.0.0 requires guzzlehttp/guzzle ~6.0 -> satisfiable by guzzlehttp/guzzle[6.0.0, 6.0.1, 6.0.2, 6.1.0, 6.1.1, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.3.
0, 6.3.1, 6.3.2, 6.3.3].
    - Can only install one of: guzzlehttp/guzzle[6.0.0, 5.3.2].
    - Can only install one of: guzzlehttp/guzzle[6.0.1, 5.3.2].
    - Can only install one of: guzzlehttp/guzzle[6.0.2, 5.3.2].
    - Can only install one of: guzzlehttp/guzzle[6.1.0, 5.3.2].
    - Can only install one of: guzzlehttp/guzzle[6.1.1, 5.3.2].
    - Can only install one of: guzzlehttp/guzzle[6.2.0, 5.3.2].
    - Can only install one of: guzzlehttp/guzzle[6.2.1, 5.3.2].
    - Can only install one of: guzzlehttp/guzzle[6.2.2, 5.3.2].
    - Can only install one of: guzzlehttp/guzzle[6.2.3, 5.3.2].
    - Can only install one of: guzzlehttp/guzzle[6.3.0, 5.3.2].
    - Can only install one of: guzzlehttp/guzzle[6.3.1, 5.3.2].
    - Can only install one of: guzzlehttp/guzzle[6.3.2, 5.3.2].
    - Can only install one of: guzzlehttp/guzzle[6.3.3, 5.3.2].
    - Installation request for guzzlehttp/guzzle (locked at 5.3.2) -> satisfiable by guzzlehttp/guzzle[5.3.2].


Installation failed, reverting ./composer.json to its original content.
0 likes
1 reply
ejdelmonico's avatar
Level 53

Try running composer global update before trying to install it. It seems that the Guzzle version you have in the cache is causing a problem.

If that still gives the same error, then uninstall Guzzle with composer so the conflict is gone.

2 likes

Please or to participate in this conversation.