如何使用Composer安装特定的Magento 2版本?


21

我想在Composer中安装Magento 2.1.7版,我在可在require:中使用的文档中找到了该文件"magento/product-community-edition": "2.1.7",但composer说找不到所需的软件包。

我还发现我可以做到:

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <installation directory name>

但这不允许版本号吗?

Answers:


52

您可以尝试以下命令:

作曲家create-project --repository-url = https://repo.magento.com/ magento / project-community-edition = 2.1.7 / installation / directory / path

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.