尝试为 Magento 配置 MAMP

问题描述

我正在我的 Mac 上安装 Magento 2,以便我可以使用 JetBrains PHPStorm 进行开发并与我公司的服务器交换。

我已经安装了 MAMP,但在安装 Magento 2.3.5-p1 时,我需要设置一些 PHP 扩展,但我不确定如何执行此操作。

我需要 intl、ext-zip 和其他可能的文件。这是我看到的:

composer create-project --repository-url=https://repo.magento.com/magento/project-community-edition=2.3.5-p1 在“./project-community-edition”创建一个“magento/project-community-edition=2.3.5-p1”项目 安装 magento/project-community-edition (2.3.5-p1)

  • 安装 magento/project-community-edition (2.3.5-p1):提取存档 在 /Applications/MAMP/htdocs/project-community-edition 中创建项目 使用包信息加载作曲家存储库 更新依赖 无法将您的要求解析为一组可安装的软件包。

问题 1 - 根 composer.json 需要 magento/product-community-edition 2.3.5-p1 -> 可满足 magento/product-community-edition[2.3.5-p1]。 - magento/product-community-edition 2.3.5-p1 需要 ext-intl * -> 您的系统中缺少它。安装或启用 PHP 的 intl 扩展。 问题二 - 根 composer.json 需要dealerdirect/PHPcodesniffer-composer-installer ^0.5.0 -> 可满足dealerdirect/PHPcodesniffer-composer-installer[v0.5.0]。 -dealerdirect/PHPcodesniffer-composer-installer v0.5.0 需要 composer-plugin-api ^1.0 -> 找到 composer-plugin-api[2.0.0] 但它与约束不匹配。 问题三 - magento/magento2-functional-testing-framework[2.6.4,...,2.6.6] 需要 PHP-webdriver/webdriver ^1.8.0 -> 可满足 PHP-webdriver/webdriver[1.8.0,1.10.0]。 - PHP-webdriver/webdriver[1.8.0,1.10.0] 需要 ext-zip * -> 你的系统中缺少它。安装或启用 PHP 的 zip 扩展。 - 根 composer.json 需要 magento/magento2-functional-testing-framework ~2.6.4 -> 可满足 magento/magento2-functional-testing-framework[2.6.4,2.6.5,2.6.6]。

您使用的是 Composer 2,您的某些插件似乎与该版本不兼容。确保您更新插件或报告插件问题以要求他们支持 Composer 2。

谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)