statamic / cli

Install and manage your Statamic projects from the command line.
71 stars 19 forks source link

Guzzlehttp issue on install #22

Closed eheiser closed 3 years ago

eheiser commented 3 years ago

Getting the following error when trying to install:

Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for statamic/cli ^2.0 -> satisfiable by statamic/cli[2.0.0].
    - Conclusion: remove guzzlehttp/guzzle 4.2.3
    - Conclusion: don't install guzzlehttp/guzzle 4.2.3
    - statamic/cli 2.0.0 requires guzzlehttp/guzzle ^6.5.5|^7.0.1 -> satisfiable by guzzlehttp/guzzle[6.5.5, 7.0.1, 7.1.0, 7.1.1, 7.2.0].
    - Can only install one of: guzzlehttp/guzzle[6.5.5, 4.2.3].
    - Can only install one of: guzzlehttp/guzzle[7.0.1, 4.2.3].
    - Can only install one of: guzzlehttp/guzzle[7.1.0, 4.2.3].
    - Can only install one of: guzzlehttp/guzzle[7.1.1, 4.2.3].
    - Can only install one of: guzzlehttp/guzzle[7.2.0, 4.2.3].
    - Installation request for guzzlehttp/guzzle (locked at 4.2.3) -> satisfiable by guzzlehttp/guzzle[4.2.3].

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

Any suggestions?

jasonvarga commented 3 years ago

Looks like you have an older version of Guzzle installed.

Run composer global why guzzlehttp/guzzle to see what's requiring it.

You probably don't need such an older version. You may be able to just remove it with composer global remove guzzlehttp/guzzle

eheiser commented 3 years ago

Cheers Jason, had to remove a few other packages but it's installed now. Thanks for the quick assist!

dimitrioskarvounaris commented 3 years ago

For anyone encountering this issue, you may need to update the laravel installer, if you haven't done so for awhile. composer global require laravel/installer

This should generally fix it.