安装Magento的Live Search-找不到软件包



我已经在虚拟机上安装了带有示例数据的Magento。现在我正在尝试为它安装Live Search。我使用了此链接中的说明。正如指令所说,我运行以下命令:

composer require magento/live-search

但它给了我一个错误:

Problem 1
- magento/live-search 2.0.0 requires magento/module-live-search-metrics 2.0.0 -> could not be found in any version, there may be a typo in the package name.
- magento/live-search 2.0.1 requires magento/module-live-search-metrics 2.0.1 -> could not be found in any version, there may be a typo in the package name.
- magento/live-search 2.0.2 requires magento/module-live-search-metrics 2.0.2 -> could not be found in any version, there may be a typo in the package name.
- magento/live-search 2.0.3 requires magento/module-live-search-metrics 2.0.3 -> could not be found in any version, there may be a typo in the package name.
- Root composer.json requires magento/live-search ^2.0 -> satisfiable by magento/live-search[2.0.0, 2.0.1, 2.0.2, 2.0.3].
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.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require magento/live-search:*" to figure out if any version is installable, or "composer require magento/live-search:^2.1" if you know which you need.

正如我所看到的,它说magento/module-live-search-metrics不存在,但我找不到其他人和我有同样的问题,这意味着这只是我的问题。

您只需键入:

composer需要magento/模块实时搜索

仅此而已=(

可能是我来晚了一点,也许会帮助其他人

我得到了同样的错误,这是因为我并没有将我的密钥填充到auth.json文件中

  1. 重命名"auth.json.sample";至";auth.json">
mv auth.json.sample auth.json
  1. 在auth.json中填充公钥和私钥
{
"http-basic": {
"repo.magento.com": {
"username": "<public-key>",
"password": "<private-key>"
}
}
}
  1. 再次尝试运行
composer require magento/live-search

最新更新