Repository navigation
|
I have a problem when I try to install lcobucci/jwt, it returns: "Your requirements could not be resolved to an installable set of packages. |
Replies: 7 comments 4 replies
|
You've got to make sure the sodium extension is enabled in your installation (as it's bundled in php it's commonly enabled by default - not in your case though). https://www.php.net/manual/en/sodium.installation.php should give you some info but it's quite likely that you have a pre-compiled package for your OS. |
|
I have got a similar issue trying to run "composer update" => Problem 1 |
i have php version 8.2.4 warning: pecl/libsodium requires PHP (version >= 7.0.0, version <= 8.0.99), installed version is 8.2.4 |
|
Dear Sir,
it is saying ext-sodium is missing from your system.
Problem 1
- lcobucci/jwt is locked to version 4.3.0 and an update of this package
was not requested.
- lcobucci/jwt 4.3.0 requires ext-sodium * -> it is missing from your
system. Install or enable PHP's sodium extension.
Problem 2
- lcobucci/jwt 4.3.0 requires ext-sodium * -> it is missing from your
system. Install or enable PHP's sodium extension.
- kreait/firebase-tokens 4.3.0 requires lcobucci/jwt ^4.3.0|^5.0 ->
satisfiable by lcobucci/jwt[4.3.0].
- kreait/firebase-tokens is locked to version 4.3.0 and an update of
this package was not requested.
can you please help me no this ..
Best Regards,
Janam
ktm, Nepal
…On Tue, Feb 13, 2024 at 11:39 PM Marco Pivetta ***@***.***> wrote:
Libsodium is part of PHP itself:
https://github.com/php/php-src/tree/115c60e0bbe0dbe1c0b11db7bf50cf23695f14dd/ext/sodium
—
Reply to this email directly, view it on GitHub
<#741 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX6A6SLB5HNBAVISSGMOWW3YTOSGPAVCNFSM45FBUYU2U5DIOJSWCZC7NNSXTOKENFZWG5LTONUW63SDN5WW2ZLOOQ5TQNBVG4YDGNQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
|
Even though the Sodium extension usually is installed by default, it isn't guaranteed to be installed. The documentation states it is still a compile time directive that enables it, and it is entirely possible that YOUR PHP version does not include it by default. Verify which extensions are available: |
|
Your requirements could not be resolved to an installable set of packages. Problem 1 |
|
I use laragon 👍
in my php.ini i just activate it Any help ! please! |
You've got to make sure the sodium extension is enabled in your installation (as it's bundled in php it's commonly enabled by default - not in your case though).
https://www.php.net/manual/en/sodium.installation.php should give you some info but it's quite likely that you have a pre-compiled package for your OS.