mardi 4 août 2020

Elastic Search Error : - elasticsearch/elasticsearch v7.6.0 requires guzzlehttp/ringphp dev-fork-elasticsearch

Code in my side was working fine, One of my team members pull code from git with composer.json file. When he tried to execute command "composer update" he got an error. He told me about the error but I didn't believe because the project was working fine my side. Then he asked me that first delete the vendor folder and then run command, I did same and got following error

  Problem 1
    - elasticsearch/elasticsearch v7.6.0 requires guzzlehttp/ringphp dev-fork-elasticsearch -> no matching package found.
    - elasticsearch/elasticsearch v7.5.1 requires guzzlehttp/ringphp dev-fork-elasticsearch -> no matching package found.
    - Conclusion: don't install basemkhirat/elasticsearch 1.4.4
    - Conclusion: don't install basemkhirat/elasticsearch 1.4.3
    - Conclusion: don't install basemkhirat/elasticsearch 1.4.2
    - Conclusion: don't install basemkhirat/elasticsearch 1.4.1
    - Conclusion: don't install elasticsearch/elasticsearch v7.8.0
    - Conclusion: don't install elasticsearch/elasticsearch v7.7.0
    - Conclusion: don't install elasticsearch/elasticsearch v7.6.1
    - Conclusion: don't install elasticsearch/elasticsearch v7.5.2
    - Conclusion: don't install elasticsearch/elasticsearch v7.5.0
    - Conclusion: don't install elasticsearch/elasticsearch v7.4.1
    - Conclusion: don't install elasticsearch/elasticsearch v7.4.0
    - Conclusion: don't install elasticsearch/elasticsearch v7.3.0
    - Conclusion: don't install elasticsearch/elasticsearch v7.2.2
    - Conclusion: don't install elasticsearch/elasticsearch v7.2.1
    - Conclusion: don't install elasticsearch/elasticsearch v7.2.0
    - Conclusion: don't install elasticsearch/elasticsearch v7.1.1
    - Conclusion: don't install elasticsearch/elasticsearch v7.1.0
    - Conclusion: don't install elasticsearch/elasticsearch v7.0.2
    - Conclusion: don't install elasticsearch/elasticsearch v7.0.1
    - Conclusion: don't install elasticsearch/elasticsearch v7.0.0
    - Conclusion: don't install elasticsearch/elasticsearch 7.x-dev
    - Conclusion: don't install elasticsearch/elasticsearch 7.9.x-dev
    - Conclusion: don't install elasticsearch/elasticsearch 7.8.x-dev
    - Conclusion: don't install elasticsearch/elasticsearch 7.7.x-dev
    - Conclusion: don't install elasticsearch/elasticsearch 7.4.x-dev
    - Installation request for basemkhirat/elasticsearch ^1.4 -> satisfiable by basemkhirat/elasticsearch[1.4, 1.4.1, 1.4.2, 1.4.3, 1.4.4].  
    - Conclusion: don't install elasticsearch/elasticsearch 7.2.x-dev
    - basemkhirat/elasticsearch 1.4 requires elasticsearch/elasticsearch ^5.0|^6.0 -> satisfiable by elasticsearch/elasticsearch[5.0.x-dev, 5.x-dev, 6.0.x-dev, 6.5.x-dev, 6.7.x-dev, 6.x-dev].
    - Can only install one of: elasticsearch/elasticsearch[7.0.x-dev, 5.0.x-dev].
    - Can only install one of: elasticsearch/elasticsearch[7.0.x-dev, 5.x-dev].
    - Can only install one of: elasticsearch/elasticsearch[7.0.x-dev, 6.0.x-dev].
    - Can only install one of: elasticsearch/elasticsearch[7.0.x-dev, 6.5.x-dev].
    - Can only install one of: elasticsearch/elasticsearch[7.0.x-dev, 6.7.x-dev].
    - Can only install one of: elasticsearch/elasticsearch[7.0.x-dev, 6.x-dev].
    - Installation request for elasticsearch/elasticsearch ~7.0 -> satisfiable by elasticsearch/elasticsearch[7.0.x-dev, 7.2.x-dev, 7.4.x-dev, 7.7.x-dev, 7.8.x-dev, 7.9.x-dev, 7.x-dev, v7.0.0, v7.0.1, v7.0.2, v7.1.0, v7.1.1, v7.2.0, v7.2.1, v7.2.2, v7.3.0, v7.4.0, v7.4.1, v7.5.0, v7.5.1, v7.5.2, v7.6.0, v7.6.1, v7.7.0, v7.8.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.

Here is my composer.json file code

{
    "name": "laravel/lumen",
    "description": "The Laravel Lumen Framework.",
    "keywords": ["framework", "laravel", "lumen"],
    "license": "MIT",
    "type": "project",
    "require": {
        "php": ">=5.6.4",
        "laravel/lumen-framework": "5.5.*",
        "vlucas/phpdotenv": "~2.2",
        "jenssegers/mongodb": "3.3.0-alpha",
        "swiftmailer/swiftmailer": "^6.0",
        "firebase/php-jwt": "^5.0",
        "delatbabel/elocryptfive": "^1.5",
        "illuminate/mail": "^5.5",
        "maatwebsite/excel": "^2.1",
        "brozot/laravel-fcm": "^1.2",
        "elasticsearch/elasticsearch": "~7.0"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "phpunit/phpunit": "~6.0",
        "mockery/mockery": "~0.9"
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "classmap": [
            "tests/",
            "database/"
        ]
    },
    "scripts": {
        "post-root-package-install": [
            "php -r \"copy('.env.example', '.env');\""
        ]
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "optimize-autoloader": true
}

What Can I do now?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire