Skip to content
Advertisement

Why can’t I install a package despite Laravel version matching the package requirements?

I am trying to install this package https://github.com/shawnsandy/img-fly on Laravel 6.5.2

According to their composer.json, they allow to use Laravel 6.* version :

JavaScript

But on a fresh Laravel 6.5.2 version, I got this error :

JavaScript

Is there anything I can do here ?

Advertisement

Answer

You are looking at the “master” branch, which might indeed have declared support for Laravel 6.

But the latest tagged version is 1.21, which has not. If you check the package on Packagist, you’ll see that’s what you get.

If you are feeling brave and want to install pre-release software, you could requirethedev-master` version, which has the Laravel support you want.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement