首页 > 解决方案 > 找不到“host_compress_magento_code”供应商

问题描述

所以我正在尝试安装第二个 vagrant VM,专门为 Magento 2 配置。我在这里找到:https ://github.com/paliarush/magento2-vagrant-for-developers on windows 10。

我无法克隆存储库,因为我得到“拒绝访问”,所以我只是下载了 rar 并将其解压缩到一个文件夹中。

之后我启动了我的 GitBash 并在文件夹中“流浪”。下载大约一个小时后,我收到此错误:

“这台机器的配置有错误。请修复以下错误,然后重试:

vm: * 找不到‘host_compress_magento_code’供应商。”

此外,主机管理器也存在问题,但我很快发现我可以执行“vagrant plugin install vagrant-hostmanager”并解决了该错误,但缺少的“host_compress_magento_code”继续不让我成为流浪者。

在“Vagrantfile”中,我找到了以下行:

config.vm.provision “host_compress_magento_code”,类型:“host_shell”,内联:“tar -cf scripts/host/magento2ce.tar magento2ce”

快速搜索该命令让我相信它需要 vagrant root 目录中的“magento2ce”文件才能创建“magento2ce.tar”存档。但我不知道该文件应该是什么。

谁能指出我正确的方向?谷歌搜索只会导致“vagrant plugin install vagrant-hostmanager”成为解决方案的线程。

提前致谢!

标签: vagrant

解决方案


为 Magento 2 Developers克隆 Vagrant Box 后,您应该(简化版):

  1. 复制etc/composer/auth.json.distetc/composer/auth.json.
  2. 将用于 Marketplace 授权的 Magento Marketplace 密钥添加到 repo.magento.com 部分。
  3. init_project.sh

请仔细阅读安装步骤 部分。它包含有关如何配置和使用此 vagrant box 的更多详细信息。

init_project.sh安装所有需要的流浪插件,然后运行vagrant up。项目启动后,您可以正常工作vagrant suspendvagrant resume等等


推荐阅读