Error generating - ext-sodium is missing from system

Problem 1

  • Root composer.json requires lexik/jwt-authentication-bundle ^3.1.1 -> satisfiable by lexik/jwt-authentication-bundle[v3.1.1, 3.x-dev].
  • lcobucci/jwt[5.0.0, ..., 5.0.x-dev] require php ~8.1.0 || ~8.2.0 -> your php version (8.3.0; overridden via config.platform, actual: 8.3.14) does not satisfy that requirement.
  • lcobucci/jwt[5.1.0, ..., 5.6.x-dev] require ext-sodium * -> it is missing from your system. Install or enable PHP's sodium extension.
    Alternatively you can require one of these packages that provide the extension (or parts of it):
    Keep in mind that the suggestions are automated and may not be valid or safe to use
  • paragonie/sodium_compat_ext_sodium
  • juspay/expresscheckout-php-sdk Express Checkout SDK for PHP allows easy integration with Juspay's EC payments as a service platform
  • vufind/vufind A flexible discovery layer.
  • lexik/jwt-authentication-bundle[v3.1.1, ..., 3.x-dev] require lcobucci/jwt ^5.0 -> satisfiable by lcobucci/jwt[5.0.0, ..., 5.6.x-dev].
    To enable extensions, verify that they are enabled in your .ini files:
  • C:\wamp64\bin\php\php8.3.14\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 to temporarily ignore these required extensions.
    Error: Command failed: composer update -n --no-audit --ansi
    at genericNodeError (node:internal/errors:985:15)
    at wrappedFn (node:internal/errors:539:14)
    at checkExecSyncError (node:child_process:925:11)
    at execSync (node:child_process:997:15)
    at global.Exec (C:\Users\stmon\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:512428)
    at global.RunComposerUpdate (C:\Users\stmon\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:523834)
    at C:\Users\stmon\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:537937
    at
    at async main (C:\Users\stmon\AppData\Roaming\PHPMaker2026\node_modules@phpmaker\core\phpmaker.js:8:537643) {
    status: 2,
    signal: null,
    output: [ null, null, null ],
    pid: 16884,
    stdout: null,
    stderr: null
    }

As the error said:

require ext-sodium * -> it is missing from your system.

Make sure you have enabled sodium PHP extension in your php.ini, see Composer for more info.

Please note that your test web server might not be the cli-environment used by composer. Check “where php” on command line and adjust the path in the environment variables if necessary.