I want to upgrade the Magento EE 2.1.6 version via composer
Comper.json
{ "name": "magento/project-enterprise-edition", "description": "eCommerce Platform for Growth (Enterprise Edition)", "type": "project", "version": "2.1.6", "license": [ "proprietary" ], "repositories": [ { "type": "composer", "url": "https://repo.magento.com/" } ], "require": { "magento/product-enterprise-edition": "2.2.2", "composer/composer": "@alpha" }, "require-dev": { "phpunit/phpunit": "4.1.0", "squizlabs/php_codesniffer": "1.5.3", "phpmd/phpmd": "2.3.*", "pdepend/pdepend": "2.2.2", "sjparkinson/static-review": "~4.1", "fabpot/php-cs-fixer": "~1.2", "lusitanian/oauth": "~0.3 <=0.7.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/", "Magento\\ToolkitFramework\\": "dev/tools/performance-toolkit/framework/Magento/ToolkitFramework/" } }, "minimum-stability": "alpha", "prefer-stable": true, "extra": { "magento-force": "override" } }
Error while running the command composer update
$ composer update Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested package magento/product-enterprise-edition 2.2.2 exists as magento/product-enterprise-edition[2.1.6] but these are rejected by your constraint.
Kindly provide a solution.
There are instructions on how to upgrade using the command line here: http://devdocs.magento.com/guides/v2.1/comp-mgr/cli/cli-upgrade.html
How did you originally install Magento?
I think it might be because you have this line in your composer.json file:
"version": "2.1.6",
@Tom Robertshaw I am getting the same error even if I update the composer.json
"version": "2.1.6"
$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package magento/product-enterprise-edition 2.2.2 exists as magento/product-enterprise-edition[2.1.6] but these are rejected by your constraint.
Removing the version line does not help with the error unfortunately.
Other posts suggest matching the version line to the product version, but that is not working for my instance either.
Hi @blachly,
What happens if you execute something like:
composer require magento/product-enterprise-edition 2.X.Y --no-update
Where X.Y is de minor number and Y the patch number.
Then, you can run:
composer update
Can you try that and share the result?
(Remember to use a Test environment and/or make a backup before any upgrade process)
Hi @Damian Culotta --
Looks like my issue was 2.3.3 was not available in the repo until today
The following adjustments to my composer file worked:
Utility/" } }, "version": "2.3.3", "minimum-stability": "stable",
"require": { "elasticsearch/elasticsearch": "~6.1", "magento/extension-b2b": "^1.1", ... "magento/product-enterprise-edition": "2.3.3", "magento/sample-data-media": "100.3.*"
Thanks.