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

sharonnsp's avatar

Composer Can't works

Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Your lock file does not contain a compatible set of packages. Please run composer update.

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 - teamtnt/tntsearch is locked to version v2.9.0 and an update of this package was not requested. - teamtnt/tntsearch v2.9.0 requires ext-pdo_sqlite * -> it is missing from your system. Install or enable PHP's pdo_sqlite extension. Problem 3 - lcobucci/jwt 4.3.0 requires ext-sodium * -> it is missing from your system. Install or enable PHP's sodium extension. - league/oauth2-server 8.4.0 requires lcobucci/jwt ^3.4.6 || ^4.0.4 -> satisfiable by lcobucci/jwt[4.3.0]. - league/oauth2-server is locked to version 8.4.0 and an update of this package was not requested.

To enable extensions, verify that they are enabled in your .ini files: - C:\laragon\bin\php\php-8.2.3-nts-Win32-vs16-x64\php.ini You can also run php --ini in a terminal to see which files are used by PHP in CLI mode. Alternatively, you can run Composer with --ignore-platform-req=ext-sodium --ignore-platform-req=ext-pdo_sqlite to temporarily ignore these required extensions.

Why i can't install composer? someone can help me ?

0 likes
5 replies
siangboon's avatar

@sharonnsp perhaps good to update the post mark it as resolved and even better give the solution that you did to overcome it.... my guess is the enable the extensions

1 like
AddWebContribution's avatar

@sharonnsp there are some packages are missing try to install sodium package and also pdo_sqlite is not there , try to installed it and after installation restart server and it will work

1 like

Please or to participate in this conversation.