skip to Main Content

I’ve installed Magento with sample data on a virtual machine. Now I’m trying to install Live Search for it. I used the instructions from this link. As the instruction says, I run the command below:

composer require magento/live-search

But it gives me an error:

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.

As I can see, it says magento/module-live-search-metrics does not exist, but I couldn’t find anyone else who has the same problem as mine, which means this is only my problem.

2

Answers


  1. You just have to type:

    composer require magento/module-live-search

    and that’s it =)

    Login or Signup to reply.
  2. Might be I am a bit too late, maybe will help for somebody else

    I got same error and it was because I haven’t filled my keys into auth.json file

    1. Rename "auth.json.sample" to "auth.json"
    mv auth.json.sample auth.json
    
    1. Fill public key and private key in auth.json
    {
        "http-basic": {
            "repo.magento.com": {
                "username": "<public-key>",
                "password": "<private-key>"
            }
        }
    }
    
    1. Try again to run
    composer require magento/live-search
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search