magento - 尝试为 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)
- 安装 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 扩展。问题 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。
谢谢。
解决方案
推荐阅读
- business-objects - Web Intelligence :聚合值的计数
- java - 从 Java 调用时,FFMPEG 不会产生有效的 mp4 输出
- python - Django 错误 -django.db.utils.DataError: value too long for type character varying(1)
- android - 应用被多个 Firebase 项目杀死时未收到 FCM 通知
- c# - C# 从同一命名空间中的单独类调用辅助函数,没有前缀并且可以访问 System.Web.UI.Page
- sql - 根据我想对多个值进行 CASE 的聚合行生成一个值?
- python - 在日期时间段内分配累积的第 N 天。[即这一行属于第134天]
- assembly - 为什么堆栈中地址的大小大于保存的eip地址的大小?
- javascript - 为什么事件“transitionend”会触发两次?
- javascript - 如果'React'是'react'的默认导出,为什么我们不能使用其他名称而不是'React'