[英]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我正在尝试在 Laravel 6.5.2 上安装这个包https://github.com/shawnsandy/img-fly
According to their composer.json, they allow to use Laravel 6.* version :根据他们的 composer.json,他们允许使用 Laravel 6.* 版本:
"require": {
"php": ">=7.0",
"illuminate/support": "5.*|6.*",
"league/glide-laravel": "1.*"
},
But on a fresh Laravel 6.5.2 version, I got this error :但是在新的 Laravel 6.5.2 版本上,我收到了这个错误:
Problem 1
- Installation request for shawnsandy/img-fly ^0.1.21 -> satisfiable by shawnsandy/img-fly[v0.1.21].
- Conclusion: remove laravel/framework v6.6.1
- Conclusion: don't install laravel/framework v6.6.1
- shawnsandy/img-fly v0.1.21 requires illuminate/support 5.*
Is there anything I can do here ?有什么我可以在这里做的吗?
You are looking at the "master" branch, which might indeed have declared support for Laravel 6 .您正在查看“master”分支,它可能确实声明了对 Laravel 6 的支持。
But the latest tagged version is 1.21, which has not .但是最新的标记版本是 1.21,它没有. If you check the package on Packagist, you'll see that's what you get .
如果您检查 Packagist 上的软件包,您会看到这就是您所得到的。
If you are feeling brave and want to install pre-release software, you could require the
dev-master` version, which has the Laravel support you want.如果你感觉勇敢,要安装预发布软件,你可能需要
the
DEV-master`的版本,其中有你想要的Laravel支持。
composer require shawnsandy/img-fly:dev-master
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.