Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation problems and dependencies #86

Open
3 tasks
gabzon opened this issue Jul 6, 2023 · 3 comments
Open
3 tasks

Installation problems and dependencies #86

gabzon opened this issue Jul 6, 2023 · 3 comments

Comments

@gabzon
Copy link

gabzon commented Jul 6, 2023

Summary

I'm trying to install the package on a PHP Laravel application (local on a Mac). I tried to run

composer require mailersend/mailersend

unfortunately I got this...

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

  Problem 1
    - mailersend/mailersend[v0.1.0, ..., v0.1.1] require php ^7.4 -> your php version (8.2.4) does not satisfy that requirement.
    - mailersend/mailersend[v0.2, ..., v0.11.0] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires mailersend/mailersend * -> satisfiable by mailersend/mailersend[v0.1.0, ..., v0.11.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require mailersend/mailersend:*" to figure out if any version is installable, or "composer require mailersend/mailersend:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Then I checked for the newest version and I run

composer require mailersend/mailersend:^0.11

it gave me this:

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

  Problem 1
    - Root composer.json requires mailersend/mailersend ^0.11 -> satisfiable by mailersend/mailersend[v0.11.0].
    - mailersend/mailersend v0.11.0 requires psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Finally I ran

composer require mailersend/mailersend:^0.11 -W

and got

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

  Problem 1
    - symfony/symfony[v5.4.16, ..., v5.4.25] require psr/container ^1.1.1 -> found psr/container[1.1.1, 1.1.2] but these were not loaded, likely because it conflicts with another require.
    - mailersend/mailersend v0.11.0 requires symfony/symfony ^5.4.16 -> satisfiable by symfony/symfony[v5.4.16, ..., v5.4.25].
    - Root composer.json requires mailersend/mailersend ^0.11 -> satisfiable by mailersend/mailersend[v0.11.0].


Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Any ideas what should I do?
Thanks

@fgd007
Copy link

fgd007 commented Aug 7, 2023

Did you find any fix for this? Running into the same issue here.

@gabzon
Copy link
Author

gabzon commented Aug 7, 2023

I did, but I didn't do anything special. I only did this:

  • deleted the composer.lock file
  • composer clear-cache

Just in case I succeed by installing the Laravel package, which at the beginning it did not work. Now everything works fine!

@fgd007
Copy link

fgd007 commented Aug 8, 2023

@gabzon Thanks mate, this solved it for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants