Skip to content

Package cannot be installed alongside Laravel Jetstream #60

@aijorgenson

Description

@aijorgenson

The conflict between laravel/jetstream and swayok/alternative-laravel-cache arises due to incompatible dependencies on psr/simple-cache and psr/cache.

  1. laravel/jetstream requires mobiledetect/mobiledetectlib, which in turn requires:

    • psr/simple-cache version ^3.0 or ^2 || ^3
    • psr/cache version ^3.0
  2. swayok/alternative-laravel-cache has dependencies that are not compatible with the required versions of psr/simple-cache and psr/cache:

    • Some versions of swayok/alternative-laravel-cache require psr/simple-cache version ^1.0.0
    • Other dependencies of swayok/alternative-laravel-cache require psr/cache versions ^1.0 or ^2.0, which conflict with ^3.0

This results in a situation where the required versions of psr/simple-cache and psr/cache cannot be satisfied simultaneously, leading to the conflict.

  Problem 1
    - Root composer.json requires laravel/jetstream ^v5.0.0 -> satisfiable by laravel/jetstream[v5.0.0, ..., 5.x-dev].
    - Root composer.json requires swayok/alternative-laravel-cache ^6 -> satisfiable by swayok/alternative-laravel-cache[6.0.0, ..., 6.1.17].
    - laravel/jetstream v5.0.0 requires mobiledetect/mobiledetectlib ^4.8 -> satisfiable by mobiledetect/mobiledetectlib[4.8.01, ..., 4.8.x-dev].
    - laravel/jetstream[v5.3.4, ..., 5.x-dev] require mobiledetect/mobiledetectlib ^4.8.08 -> satisfiable by mobiledetect/mobiledetectlib[4.8.08, 4.8.09, 4.8.x-dev].
    - mobiledetect/mobiledetectlib[4.8.01, ..., 4.8.05] require psr/simple-cache ^3.0 -> satisfiable by psr/simple-cache[3.0.0, 3.0.x-dev].
    - mobiledetect/mobiledetectlib[4.8.06, ..., 4.8.07] require psr/simple-cache ^2 || ^3 -> satisfiable by psr/simple-cache[2.0.0, 2.x-dev, 3.0.0, 3.0.x-dev].
    - mobiledetect/mobiledetectlib[4.8.08, ..., 4.8.x-dev] require psr/cache ^3.0 -> satisfiable by psr/cache[3.0.0, 3.0.x-dev].
    - Conclusion: don't install one of psr/simple-cache[1.0.1], laravel/jetstream[v5.3.3] (conflict analysis result)
    - Conclusion: don't install psr/cache 3.0.0 (conflict analysis result)
    - Conclusion: install psr/simple-cache 1.0.1 (conflict analysis result)
    - You can only install one version of a package, so only one of these can be installed: psr/simple-cache[1.0.0, 1.0.1, 2.0.0, 2.x-dev, 3.0.0, 3.0.x-dev].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions