简体   繁体   中英

magento 2 composer installation issue in xampp with php 7.3.2

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?

在此处输入图片说明

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:

  1. Downgrade to PHP 7.2.x to match the package's requirements.

  2. 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 ie 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' 
  3. Ignore the PHP version requirement for a single composer install with:

     composer install --ignore-platform-reqs 
  4. 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 version 7.2.21 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM