elasticsearch,composer-php,Laravel,elasticsearch,Composer Php" /> elasticsearch,composer-php,Laravel,elasticsearch,Composer Php" />

安装elasticsearch for Laravel时出现的问题

安装elasticsearch for Laravel时出现的问题,laravel,elasticsearch,composer-php,Laravel,elasticsearch,Composer Php,当我尝试使用以下命令为我的Laravel实例安装Elasticsearch时: composer require elasticsearch/elasticsearch composer require guzzlehttp/ringphp 我得到了这个错误: 问题1 -elasticsearch/elasticsearch v7.6.0需要guzzlehttp/ringphp dev fork elasticsearch->未找到匹配的包。 -tamayo/laravel scout el

当我尝试使用以下命令为我的Laravel实例安装Elasticsearch时:

composer require elasticsearch/elasticsearch
composer require guzzlehttp/ringphp
我得到了这个错误:

问题1 -elasticsearch/elasticsearch v7.6.0需要guzzlehttp/ringphp dev fork elasticsearch->未找到匹配的包。 -tamayo/laravel scout elastic 5.0.0需要elasticsearch/elasticsearch^5.0->可满足 elasticsearch/elasticsearch[5.0.x-dev]。 -tamayo/laravel scout elastic 5.0.0需要elasticsearch/elasticsearch^5.0->可满足 elasticsearch/elasticsearch[5.0.x-dev]。 -tamayo/laravel scout elastic 5.0.0需要elasticsearch/elasticsearch^5.0->可满足 elasticsearch/elasticsearch[5.0.x-dev]。 -只能安装以下其中之一:elasticsearch/elasticsearch[v7.6.1,5.0.x-dev]。 -elasticsearch/elasticsearch^7.6->的安装请求可通过elasticsearch/elasticsearch[v7.6.0,v7.6.1]满足。 -tamayo/laravel scout elastic ^5.0->可满足tamayo/laravel scout elastic[5.0.0]的安装要求

潜在原因: -软件包名称中的输入错误 -根据您的最低稳定性设置,该软件包没有足够稳定的版本,请参阅 更多 细节。 -这是一个私有包,您忘记添加自定义存储库来查找它

读 其他常见问题

安装失败,将./composer.json还原为其原始版本 内容

然后,我尝试使用以下命令安装错误中提到的软件包:

composer require elasticsearch/elasticsearch
composer require guzzlehttp/ringphp
我得到了以下警告:

如果放弃了http/ringphp包,您应该避免使用它。不 有人建议更换。HTTP/streams包被放弃, 你应该避免使用它。没有人建议更换

然后我尝试再次安装它,但我得到了相同的错误


我能做些什么来解决这个问题?

请尝试再次安装它-根据Packagegist的说法,有一个版本7.6.1可用,不再依赖于此类软件包。您也可以在

上找到这一点,似乎
ringphp
包路径是错误的。请检查此项以了解
ringphp
is的正确安装和官方文档