gpt4 book ai didi

laravel - 为Laravel安装Elasticsearch时出现问题

转载 作者:行者123 更新时间:2023-12-03 01:20:40 28 4
gpt4 key购买 nike

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

composer require elasticsearch/elasticsearch

我收到此错误:

Problem 1 - elasticsearch/elasticsearch v7.6.0 requires guzzlehttp/ringphp dev-fork-elasticsearch -> no matching package found. - tamayo/laravel-scout-elastic 5.0.0 requires elasticsearch/elasticsearch ^5.0 -> satisfiable by elasticsearch/elasticsearch[5.0.x-dev]. - tamayo/laravel-scout-elastic 5.0.0 requires elasticsearch/elasticsearch ^5.0 -> satisfiable by elasticsearch/elasticsearch[5.0.x-dev]. - tamayo/laravel-scout-elastic 5.0.0 requires elasticsearch/elasticsearch ^5.0 -> satisfiable by elasticsearch/elasticsearch[5.0.x-dev]. - Can only install one of: elasticsearch/elasticsearch[v7.6.1, 5.0.x-dev]. - Installation request for elasticsearch/elasticsearch ^7.6 -> satisfiable by elasticsearch/elasticsearch[v7.6.0, v7.6.1]. - Installation request for tamayo/laravel-scout-elastic ^5.0 -> satisfiable by tamayo/laravel-scout-elastic[5.0.0].

Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setting see https://getcomposer.org/doc/04-schema.md#minimum-stability for more details. - It's a private package and you forgot to add a custom repository to find it

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

Installation failed, reverting ./composer.json to its original content.



然后我尝试使用以下命令安装错误中提到的软件包:
composer require guzzlehttp/ringphp

我收到以下警告:

Package guzzlehttp/ringphp is abandoned, you should avoid using it. No replacement was suggested. Package guzzlehttp/streams is abandoned, you should avoid using it. No replacement was suggested



然后,我尝试再次安装它,并且得到了同样的错误。

我该怎么解决这个问题?

最佳答案

请简单地尝试再次安装它-根据Packagist的说法,有7.6.1版可用,不再依赖于此类软件包。您也可以在https://github.com/elastic/elasticsearch-php/releases上找到此内容

关于laravel - 为Laravel安装Elasticsearch时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60297208/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com