如何在安装一个模块时修复magento 2错误

问题描述 投票:0回答:2

我有我的magento 2网站,我想使用以下命令安装一个模块

composer require eway/eway-rapid-magento2 3.0.1

但我得到以下错误

magento/framework 100.1.15 requires php ~5.6.5|7.0.2|7.0.4|~7.0.6 -> your PHP version (7.1.27) does not satisfy that requirement.

请让我知道如何解决这个问题。

谢谢

php magento2.2
2个回答
0
投票

忽略平台要求(php和ext-packages)。

composer require eway/eway-rapid-magento2 3.0.1 --ignore-platform-reqs

0
投票

如前所述,php版本对于这个模块版本是不正确的,所以要么更新php版本,要么更新模块版本,哪个版本满足php版本。

© www.soinside.com 2019 - 2024. All rights reserved.