vagrant - 找不到“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”成为解决方案的线程。
提前致谢!
解决方案
为 Magento 2 Developers克隆 Vagrant Box 后,您应该(简化版):
- 复制
etc/composer/auth.json.dist
到etc/composer/auth.json
. - 将用于 Marketplace 授权的 Magento Marketplace 密钥添加到 repo.magento.com 部分。
- 跑
init_project.sh
请仔细阅读安装步骤 部分。它包含有关如何配置和使用此 vagrant box 的更多详细信息。
init_project.sh
安装所有需要的流浪插件,然后运行vagrant up
。项目启动后,您可以正常工作vagrant suspend
,vagrant resume
等等
推荐阅读
- azure - 如何以编程方式将 DigiCert 作为证书颁发机构添加到 Azure Key Vault?
- node.js - AWS elasticsearch 服务:Curl http 命令工作正常,但不是 elasticsearch npm
- pine-script - Pinescript:想在不使用安全功能的情况下获得前一天的高点
- java - Bytedeco.javacv.FFmpegFrameGrabber 问题
- python-3.x - Django rest framework merging two serializers data based on following requirement
- javascript - Three.js:用一种颜色填充网格着色器材料到某个位置
- python - pyodbc 在 MS SQL 服务器中使用二进制数据更新记录
- kotlin - 如何在 Kotlin 中将值从函数传递到另一个函数?
- java - 模拟方法中的依赖项而不是方法本身
- python - Python 字符串通过套接字发送两次