Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer install failed #79

Open
ucrstubbs opened this issue Oct 12, 2021 · 1 comment
Open

composer install failed #79

ucrstubbs opened this issue Oct 12, 2021 · 1 comment

Comments

@ucrstubbs
Copy link

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?

@nielsdrost7
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants