Как обновить Magento до 2.2.7 (Зависимости могут быть исправлены) - PullRequest
0 голосов
/ 24 декабря 2018

Когда я пытаюсь обновить Magento с 2.1.9 до 2.2.7 с помощью composer, он показывает эту ошибку:

    Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - tinify/magento2 dev-master requires tinify/tinify >=1.5 ->     satisfiable by tinify/tinify[1.5.2, 1.5.0, 1.5.1].
    - tinify/magento2 dev-master requires tinify/tinify >=1.5 ->     satisfiable by tinify/tinify[1.5.2, 1.5.0, 1.5.1].
    - tinify/magento2 dev-master requires tinify/tinify >=1.5 ->     satisfiable by tinify/tinify[1.5.2, 1.5.0, 1.5.1].
    - tinify/tinify 1.5.2 requires lib-curl >=7.20.0 -> the requested     linked library curl has the wrong version installed or is missing from your     system, make sure to have the extension providing it.
    - tinify/tinify 1.5.2 requires lib-curl >=7.20.0 -> the requested     linked library curl has the wrong version installed or is missing from your     system, make sure to have the extension providing it.
    - tinify/tinify 1.5.1 requires lib-curl >=7.20.0 -> the requested     linked library curl has the wrong version installed or is missing from your     system, make sure to have the extension providing it.
    - tinify/tinify 1.5.0 requires lib-curl >=7.20.0 -> the requested     linked library curl has the wrong version installed or is missing from your     system, make sure to have the extension providing it.
    - Installation request for tinify/magento2 dev-master -> satisfiable by     tinify/magento2[dev-master].

Я пытался отредактировать файл composer.json и удалить tinify из требований,даже я отредактировал файл composer.lock и изменил версию tinify с 1.5 на *, но все равно он показывает ошибку.Я также пытался использовать --ignore-platform-reqs, но все равно не повезло.

Вот содержимое composer.json:

{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"version": "2.1.2",
"license": [
    "OSL-3.0",
    "AFL-3.0"
],
"require": {
    "magento/product-community-edition": "2.2.7",
    "composer/composer": "@alpha",
    "magento/data-migration-tool": "2.2.7",
    "tinify/magento2": "dev-master",
    "mageplaza/magento-2-social-login": "^2.3",
    "magepal/magento2-gmailsmtpapp": "^1.4",
    "mageplaza/module-smtp": "^1.0"
},
"require-dev": {
    "phpunit/phpunit": "4.1.0",
    "squizlabs/php_codesniffer": "1.5.3",
    "phpmd/phpmd": "@stable",
    "pdepend/pdepend": "2.2.2",
    "fabpot/php-cs-fixer": "~1.2",
    "lusitanian/oauth": "~0.3 <=0.7.0",
    "sebastian/phpcpd": "2.0.0"
},
"config": {
    "use-include-path": true
},
"autoload": {
    "psr-4": {
        "Magento\\Framework\\": "lib/internal/Magento/Framework/",
        "Magento\\Setup\\": "setup/src/Magento/Setup/",
        "Magento\\": "app/code/Magento/"
    },
    "psr-0": {
        "": "app/code/"
    },
    "files": [
        "app/etc/NonComposerComponentRegistration.php"
    ]
},
"autoload-dev": {
    "psr-4": {
        "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
        "Magento\\Tools\\": "dev/tools/Magento/Tools/",
        "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
        "Magento\\TestFramework\\Inspection\\": "dev/tests/static/framework/Magento/TestFramework/Inspection/",
        "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
    }
},
"minimum-stability": "alpha",
"prefer-stable": true,
"repositories": {
    "0": {
        "type": "composer",
        "url": "https://repo.magento.com/"
    },
    "magento": {
        "type": "composer",
        "url": "https://repo.magento.com"
    },
    "tinify": {
        "type": "vcs",
        "url": "https://github.com/tinify/magento2-plugin"
    },
    "talv/magento2-wysiwyg-fix": {
        "type": "vcs",
        "url": "https://github.com/talv/magento2-wysiwyg-fix/"
    }
},
"extra": {
    "magento-force": "override"
}
}
...