PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, February 19, 2022

[FIXED] magento 2 composer installation issue in xampp with php 7.3.2

 February 19, 2022     composer-php, magento-2.3, php     No comments   

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?

enter image description here


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:

  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 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'
    
  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.



Answered By - Nicolai Fröhlich
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing