首页 > 解决方案 > 尝试为 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 创建“magento/project-community-edition=2.3.5-p1” “./project-community-edition”中的项目安装 magento/project-community-edition (2.3.5-p1)

问题 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 扩展。问题 2 - 根 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] 但它与约束不匹配。问题 3 - 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。

谢谢。

标签: magentoterminalcomposer-phpmacos-big-sur

解决方案


推荐阅读