Meilisearch-laravel-scout: Laravel 7 安装错误

创建于 2020-09-10  ·  14评论  ·  资料来源: meilisearch/meilisearch-laravel-scout

当我尝试使用 laravel 7 安装 meilisearch-laravel-scout 时
它显示错误:

composer require meilisearch/meilisearch-laravel-scout

Problem 1
    - Installation request for meilisearch/meilisearch-laravel-scout ^0.11.0 -> satisfiable by meilisearch/meilisearch-laravel-scout[v0.11.0].
    - Can only install one of: guzzlehttp/guzzle[6.5.x-dev, 7.0.1].
    - Can only install one of: guzzlehttp/guzzle[7.0.1, 6.5.x-dev].
    - Can only install one of: guzzlehttp/guzzle[6.5.x-dev, 7.0.1].
    - Conclusion: install guzzlehttp/guzzle 6.5.x-dev
    - Installation request for guzzlehttp/guzzle (locked at 7.0.1, required as ^7.0) -> satisfiable by guzzlehttp/guzzle[7.0.1].

最有用的评论

@dreamcog ,我不建议使用这种方法。 尽管这对于测试更改没问题,但它不是永久性修复。 我打开了一个 PR,它将解决这个问题并将我的更改合并到这个 repo 中。

所有14条评论

你好@dreamcog!

此问题可能与meilisearch-php 中的

感谢您的反馈和尝试 Meil​​ISearch 😁

@curquiza感谢您的回复。
我阅读了今天在 meilisearch-php 中发布的问题,我会尝试自己修复它:)

让我们随时了解您的修复! :)

同样的问题在这里。有什么快速的解决方案吗?

你好@felixgoldstein! 抱歉,我现在没有任何快速解决方案可以提供。 这个 PR https://github.com/meilisearch/meilisearch-php/pull/81 (你可能已经看过)将解决这个问题。 包含此更改的新版本即将推出!

@felixgoldstein我正在使用 Laravel 7 的包,你只需要使用 "guzzlehttp / guzzle": "^ 6.3" 直到解决了 meilisearch/meilisearch-php#81

请为旧版本的 Laravel 提供此支持。

@curquiza @IvanG11我通过创建 meilisearch-php 的分支并在我的分支上应用开放拉取请求为我解决了这个问题 - 使用 laravel 8

我已经用@bensherred的分支解决了它,非常感谢。

1.安装 v0.14 melisearch-php
$ composer require meilisearch/meilisearch-php symfony/http-client nyholm/psr7:^1.0

2.安装@bensherred meilisearch-laravel-scout 分支
"repositories": [ { "type" : "vcs", "url" : "https://github.com/bensherred/meilisearch-laravel-scout.git" } ]

"meilisearch/meilisearch-laravel-scout": "dev-update-meilisearch-php",

谢谢@bensherred

@dreamcog ,我不建议使用这种方法。 尽管这对于测试更改没问题,但它不是永久性修复。 我打开了一个 PR,它将解决这个问题并将我的更改合并到这个 repo 中。

v0.12.0现已发布并修复了此问题。

这在Laravel 7 上尚未

  Problem 1
    - Can only install one of: laravel/scout[8.x-dev, v7.2.1].
    - Can only install one of: laravel/scout[v7.2.1, 8.x-dev].
    - Can only install one of: laravel/scout[8.x-dev, v7.2.1].
    - meilisearch/meilisearch-laravel-scout v0.12.0 requires laravel/scout ^8.0 -> satisfiable by laravel/scout[8.x-dev].
    - Installation request for meilisearch/meilisearch-laravel-scout ^0.12.0 -> satisfiable by meilisearch/meilisearch-laravel-scout[v0.12.0].
    - Installation request for laravel/scout (locked at v7.2.1, required as ^7.2) -> satisfiable by laravel/scout[v7.2.1].

@rizalfauzie你能发送你的 composer.json 依赖项的内容吗?

laravel/scout 的安装请求(锁定在 v7.2.1,...)

您可能需要将您的 laravel scout 版本升级到 ^8(meilisearch 需要)。

此页面是否有帮助?
0 / 5 - 0 等级