coreui-free-laravel-admin-template icon indicating copy to clipboard operation
coreui-free-laravel-admin-template copied to clipboard

composer install failed

Open ucrstubbs opened this issue 3 years ago • 1 comments

I seem to be running into an issue in the installation process.

Problem 1 - spatie/laravel-medialibrary is locked to version 8.7.2 and an update of this package was not requested. - spatie/laravel-medialibrary 8.7.2 requires php ^7.4 -> your php version (7.3.31) does not satisfy that requirement.

As you can see i am running PHP 7.3.31, When i try to run PHP 7.4 I receive a similar log output for different dependencies specifying that they require PHP 7.3.

What is the best way for me to resolve this as it seems the dependencies require different versions of PHP to function?

ucrstubbs avatar Oct 12 '21 20:10 ucrstubbs

So the latest spatie/laravel-medialibrary which supports PHP 7.2 & PHP 7.3 is 7.20, which means you're downgrading that package. If you want to do that instead of upgrading your PHP version then in your composer.json change it to "spatie/laravel-medialibrary": "^7.20", Now it depends on if you're using composer install or composer update. composer update will downgrade your spatie package.

Recommended is to upgrade to PHP 7.4, but you'll never know what you run into. I would use docker, which makes it easier.

nielsdrost7 avatar Oct 29 '21 09:10 nielsdrost7