简体   繁体   English

使用php 7.3.2在xampp中进行magento 2 composer安装问题

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

I just tried to install Magento 2 on my local server Xampp 我只是尝试在本地服务器Xampp上安装Magento 2

I installed the composer and when tried to run composer install in command prompt , I got a error 我安装了作曲家,并且在命令提示符下尝试运行composer install时,出现错误

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. amzn / amazon-pay-and-amazon-core-module 3.2.9需要php 7.1.3- 7.2.0,您的php版本7.3.2不能满足该要求。

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 . 当前版本的amzn/amazon-pay-and-login-with-amazon-core-module软件包需要PHP 7.2版。 You're on PHP version 7.3.2 which is not supported by version 3.2.9 of the package (yet). 您使用的是PHP版本7.3.2 ,但该软件包的3.2.9版本尚未支持。

You have multiple options to resolve the issue: 您可以通过多种方法解决此问题:

  1. Downgrade to PHP 7.2.x to match the package's requirements. 降级到PHP 7.2.x以符合软件包的要求。

  2. Try to install a newer version of the package or directly from the master branch. 尝试安装更新版本的软件包,或直接从master分支安装。

    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: 如果与PHP 7.3的兼容性已添加到包的composer.json中,即在较新版本或master分支中,则可以使用:

     # 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的PHP版本要求:

     composer install --ignore-platform-reqs 
  4. Override the PHP version in your composer.json . 在您的composer.json覆盖PHP版本。

     "config": { "platform": { "php": "7.2.21" } } 

    This way all subsequent runs of composer install|update will resolve the PHP to version 7.2.21 . 这样, composer install|update所有后续运行将把PHP解析为7.2.21版。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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