Issue
I just tried to install Magento 2
on my local server Xampp
I installed the composer and when tried to run composer install
in command prompt , I got a error
amzn/amazon-pay-and-login-with-amazon-core-module 3.2.9 requires php 7.1.3- 7.2.0 your php version 7.3.2 doesn't satisfy that requirment.
How can I resolve this issue?
Solution
The current version of the amzn/amazon-pay-and-login-with-amazon-core-module
package requires PHP version 7.2
. You're on PHP version 7.3.2
which is not supported by version 3.2.9
of the package (yet).
You have multiple options to resolve the issue:
Downgrade to PHP 7.2.x to match the package's requirements.
Try to install a newer version of the package or directly from the master branch.
If the compatibility with PHP 7.3 has been added to the package's composer.json i.e. in a newer version or on the master branch you can use:
# install the master branch composer require 'amzn/amazon-pay-and-login-with-amazon-core-module:dev-master' # install a version greater than 3.2.9 composer require 'amzn/amazon-pay-and-login-with-amazon-core-module:~3.2.10'
Ignore the PHP version requirement for a single
composer install
with:composer install --ignore-platform-reqs
Override the PHP version in your
composer.json
."config": { "platform": { "php": "7.2.21" } }
This way all subsequent runs of
composer install|update
will resolve the PHP to version7.2.21
.
Answered By - Nicolai Fröhlich
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.