1

我一直在尝试从 Roots 堆栈设置一个 Trellis 本地 WordPress 开发环境。我完成了文档中的所有步骤,具有推荐的文件夹结构,下载了所有依赖项,但仍然出现一些错误。

首先,当我在主题文件夹中使用“yarn”时,会收到一些错误和警告,如此处所建议的。他们说要使用我主机上的 CLI 而不是 Vagrant 盒子,那只是 MacBook 的终端,对吧?还是我需要 VirtualBox 的 CLI?

第二个错误发生在尝试调用“vagrant up”时,我可以将其粘贴在这里,因为它更简洁一些。

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "create"]

Stderr: 0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 95 of file VBoxManageHostonly.cpp

谷歌搜索后,我得到了很多过时的建议来检查我的 PATH 并重新启动 VirtualBox,但我尝试了这些并没有帮助。我希望有人可以帮助我设置这个,谢谢。:)

4

0 回答 0