缺少共享文件夹的主机路径:path / to / file Mac OS X Yosemite

时间:2015-04-16 13:47:59

标签: macos vagrant virtualbox laravel-5 homestead

我在运行时遇到此错误:vagrant up

enter image description here

Homestead.yaml

folders:
    - map: ~/Applications/MAMP/htdocs
      to: /home/vagrant/code

sites:
    - map: homestead.app
      to: /home/vagrant/code/aveniros/Laravel/public

有人可以指出我在这里做错了什么吗?

1 个答案:

答案 0 :(得分:3)

我通过删除(~

来解决此灾难

<强> Homestead.yaml

folders:
- map: /Applications/MAMP/htdocs/code 
  to: /home/vagrant/code

sites:
- map: homestead.app
  to: /home/vagrant/code/aveniros/Laravel/public

现在应该可以了。

enter image description here

然后,如果您打开Virtual Box应用程序,您应该看到类似的内容:

enter image description here

希望这个答案有所帮助! :d