telegram-bot-sdk
telegram-bot-sdk copied to clipboard
"composer require" - Error on guzzlehttp/psr7
Hi
Running composer require irazasyed/telegram-bot-sdk, I receive this error:
composer require irazasyed/telegram-bot-sdk
Using version ^3.4 for irazasyed/telegram-bot-sdk
./composer.json has been updated
Running composer update irazasyed/telegram-bot-sdk
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- irazasyed/telegram-bot-sdk[v3.4.0, ..., v3.4.1] require guzzlehttp/psr7 ^1.3 -> found guzzlehttp/psr7[1.3.0, ..., 1.x-dev] but the package is fixed to 2.1.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 irazasyed/telegram-bot-sdk ^3.4 -> satisfiable by irazasyed/telegram-bot-sdk[v3.4.0, v3.4.1].
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 irazasyed/telegram-bot-sdk:*" to figure out if any version is installable, or "composer require irazasyed/telegram-bot-sdk:^2.1" if you know which you need.
How can I fix? I'm using Laravel v8.76.2.
I had the same issue .
composer require guzzlehttp/psr7 1.*
worked for me .