I need to install the JVT authentication bundle on symfony 5.0 and it returns this error

composer require lexik/jwt-authentication-bundle
Using version ^2.9 for lexik/jwt-authentication-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.1.*"

Prefetching 8 packages

  • Downloading (100%)

Package operations: 10 installs, 0 updates, 0 removals

  • Installing symfony/property-info (v5.1.8): Loading from cache
  • Installing symfony/property-access (v5.1.8): Loading from cache
  • Installing symfony/security-core (v5.1.8): Loading from cache
  • Installing symfony/security-http (v5.1.8): Loading from cache
  • Installing symfony/security-guard (v5.1.8): Loading from cache
  • Installing symfony/security-csrf (v5.1.8): Loading from cache
  • Installing symfony/security-bundle (v5.1.8): Loading from cache
  • Installing namshi/jose (7.2.3): Loading from cache
  • Installing lcobucci/jwt (3.3.3): Loading from cache
  • Installing lexik/jwt-authentication-bundle (v2.9.0): Loading from cache
    Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
    Writing lock file
    Generating optimized autoload files
    composer/package-versions-deprecated: Generating version class…
    composer/package-versions-deprecated: …done generating version class
    58 packages you are using are looking for funding.
    Use the composer fund command to find out more!

Symfony operations: 2 recipes (d7888525d43bfbcff82cbbff8a9ce1a2)

  • Configuring symfony/security-bundle (>=5.1): From github.com/symfony/recipes:master
  • Configuring lexik/jwt-authentication-bundle (>=2.5): From github.com/symfony/recipes:master
    Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 1
    !!
    !!
    !!
    !!
    !! In ArrayNode.php line 254:
    !!
    !!
    !!
    !!
    Script @auto-scripts was called via post-update-cmd

Installation failed, reverting ./composer.json to its original content.

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *