微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

通过 PuTTY SSH 安装 Magento

如何解决通过 PuTTY SSH 安装 Magento

所以我一直在遵循 this 指南来设置 magento 并运行网页。但是,当我尝试运行此命令时;

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.3.0 .

我的 PuTTY 中出现此错误

Your requirements Could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires magento/product-community-edition 2.3.0 -> satisfiable by magento/product-community-edition[2.3.0].
    - magento/product-community-edition 2.3.0 requires magento/composer ~1.4.0 -> satisfiable by magento/composer[1.4.0] from composer repo (https://repo.packagist.org) but magento/composer[1.0.2,...,1.6.0] from composer repo (https://repo.magento.com) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.

我是 Magento 的初学者,因此非常感谢您的帮助。

谢谢, 易卜拉欣

解决方法

当您尝试使用 Composer 2.x 安装 2.4.2 之前的任何 Magento 2 版本时,该错误看起来会发生什么,如果您遵循链接到的指南,我很确定您正在使用该版本。 Magento 直到 2.4.2 release 才添加对 Composer 2 的支持。因此,您需要将 Composer 版本降级到最新的 Composer 1.x 或安装 Magento 2.4.2。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。