Homestead virtualbox错误,缺少共享文件夹的主机路径:〜/ Code

See*_*man 4 vagrant laravel homestead

我试图使用家园laravel,似乎有些问题感觉很奇怪.

root@seetha-H81M-S:/home# 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: ~/Code
Run Code Online (Sandbox Code Playgroud)

homestead.yaml

ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
- ~/.ssh/id_rsa

folders:
- map: ~/Code
  to: /home/Homestead

sites:
- map: nal.app
  to: /home/seetha/Homestead/nal/public
Run Code Online (Sandbox Code Playgroud)

在/ home/Homestead中有一个名为Homestead的文件夹,似乎仍无法正常工作.我在堆栈溢出中发现了类似的问题,但似乎没有什么对我有用.

任何人都可以帮我解决这个问题.提前致谢.

OS Ubuntu 14.04

Ima*_*ghi 7

我遇到了同样的问题并修复了它 bash init.sh

bash init.sh从Homestead目录运行命令以创建Homestead.yaml配置文件.Homestead.yaml文件将放在〜/ .homestead隐藏目录中.

如果您再次更改Homestead.yaml,则必须重新运行bash init.sh.它会要求覆盖,说是.