gpt4 book ai didi

Laravel Homestead Windows 7 上共享文件夹的主机路径丢失错误

转载 作者:行者123 更新时间:2023-12-03 23:23:05 25 4
gpt4 key购买 nike

我正在尝试在我的 Windows 7 机器上设置 laravel homestead。我安装了 vagrant 和 virtualbox。还有 git bash shell。

做过

vagrant box add laravel/homestead
composer global require "laravel/homestead=~2.0"

将 composer vendor bin 添加到环境变量中。因此,现在可以从 shell 访问 homestead 命令
homestead init   

我编辑了我的 Homestead.yaml文件,这是配置。

我的 Laravel 项目目前位于配置中提到的目录中。即( E://)目录
folders:
- map: /e/Projects/Code/apache/laravel
to: /home/vagrant/Projects

sites:
- map: foober.dev
to: /home/vagrant/Projects/foober/public

现在每当我做 homestead up , 我收到了 错误
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The host path of the shared folder is missing: /e/Projects/Code/apache/laravel

我已经确定 cd /e/Projects/Code/apache/laravel正在工作。我不确定我在这里缺少什么。一定是愚蠢的事情,但任何帮助将不胜感激。

最佳答案

错误很简单。它告诉你

The host path of the shared folder is missing: /e/Projects/Code/apache/laravel

您的共享文件夹丢失。根据你的问题。您正在使用窗口。所以,窗口不应该像
cd /e/Projects/Code/apache/laravel

应该像 YourPartitionName:/Yourdirectory .

例子:
folders:
- map: E:/Projects/Code/apache/laravel
to: /home/vagrant/Projects

关于Laravel Homestead Windows 7 上共享文件夹的主机路径丢失错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27708326/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com