laravel-medialibrary: I couldn't install this package with Laravel 5.7.*
Composer throws this message:
Problem 1
- Installation request for spatie/laravel-medialibrary 7.0.0 -> satisfiable by spatie/laravel-medialibrary[7.0.0].
- Conclusion: remove laravel/framework v5.7.6
- Conclusion: don't install laravel/framework v5.7.6
- spatie/laravel-medialibrary 7.0.0 requires illuminate/pipeline ~5.5.0|~5.6.0 -> satisfiable by illuminate/pipeline[5.5.x-dev, 5.6.x-dev, v
5.5.0, v5.5.16, v5.5.17, v5.5.2, v5.5.28, v5.5.33, v5.5.34, v5.5.35, v5.5.36, v5.5.37, v5.5.39, v5.5.40, v5.5.41, v5.5.43, v5.6.0, v5.6.1, v5.6.
10, v5.6.11, v5.6.12, v5.6.13, v5.6.14, v5.6.15, v5.6.16, v5.6.17, v5.6.19, v5.6.2, v5.6.20, v5.6.21, v5.6.22, v5.6.23, v5.6.24, v5.6.25, v5.6.2
6, v5.6.27, v5.6.28, v5.6.29, v5.6.3, v5.6.30, v5.6.31, v5.6.32, v5.6.33, v5.6.34, v5.6.35, v5.6.36, v5.6.37, v5.6.38, v5.6.4, v5.6.5, v5.6.6, v
5.6.7, v5.6.8, v5.6.9].
- don't install illuminate/pipeline 5.5.x-dev|don't install laravel/framework v5.7.6
.......
- Installation request for laravel/framework (locked at v5.7.6, required as 5.7.*) -> satisfiable by laravel/framework[v5.7.6].
How can I achieve the installation?
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 24 (1 by maintainers)
@dundermave as you mentioned, it works.
I guess the doc shoulnd’t specify the version, just the name of the package as you did.
Thanks!
I solved it by installing this way:
composer require spatie/laravel-medialibrary
It installed me ^7.5 version and now everything works fine
ok found a hacky solution provided by @jstoone: add this to your composer.json:
{ “require”: {
},
“provide”: {
}, “require-dev”: {
} }
i have similar issue with installing socialite composer require laravel/socialite i need help please
As @dundermave has mentioned above, use the below code to install the latest package of the Laravel Media Library.
composer require spatie/laravel-medialibrary
still can’t install it after install on laravel 5.7.28 composer require spatie/laravel-medialibrary
Your requirements could not be resolved to an installable set of packages.
Problem 1 - Conclusion: don’t install beyondcode/laravel-websockets 1.1.1 - Conclusion: remove guzzlehttp/psr7 1.4.2 - Installation request for beyondcode/laravel-websockets ^1.1 -> satisfiable by beyondcode/laravel-websockets[1.1.0, 1.1.1]. - Conclusion: don’t install guzzlehttp/psr7 1.4.2 - beyondcode/laravel-websockets 1.1.0 requires guzzlehttp/psr7 ^1.5 -> satisfiable by guzzlehttp/psr7[1.5.0, 1.5.1, 1.5.2, 1.5.x-dev]. - Can only install one of: guzzlehttp/psr7[1.5.0, 1.4.2]. - Can only install one of: guzzlehttp/psr7[1.5.1, 1.4.2]. - Can only install one of: guzzlehttp/psr7[1.5.2, 1.4.2]. - Can only install one of: guzzlehttp/psr7[1.5.x-dev, 1.4.2]. - Installation request for guzzlehttp/psr7 (locked at 1.4.2) -> satisfiable by guzzlehttp/psr7[1.4.2].
Installation failed, reverting ./composer.json to its original content.
This problem is not caused by this package.
Use
prohibits
to find out which package is the culprit of the problems: https://getcomposer.org/doc/03-cli.md#prohibits-why-not-@MdkanokHossain & @leonardolouie did you already tried to use the command @dundermave posted before??