P
P
posters2020-08-20 14:06:52
Composer
posters, 2020-08-20 14:06:52

How to force install a Composer package?

I'm trying to install

composer require slim/twig-view:^3.0

The release indicates support for the third slim, but when I try to install I get:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for slim/twig-view 3.0.0 -> satisfiable by slim/twig-view[3.0.0].
    - slim/twig-view 3.0.0 requires slim/slim ^4.0 -> satisfiable by slim/slim[4.0.0, 4.0.0-alpha, 4.0.0-beta, 4.1.0, 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.x-dev] but these conflict with your requirements or minimum-stability.

Requires a fourth slim minimum.
How can I ignore this problem and install the package anyway?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitsliputsli, 2020-08-20
@Vitsliputsli

How can I ignore this problem and install the package anyway?

No way, composer is designed to manage dependencies. If this is not needed, then why composer?
To resolve the conflict, lower minimum-stability and set. Or use older stable versions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question