homestead/vagrant`*共享文件夹的主机路径缺少:〜/code`



我在~/Homestead中运行vagrant up命令时会遇到以下错误

缺少共享文件夹的主机路径:〜/code`

这是在~/Homestead中运行vagrant up后我终端的输出

Josephs-MBP:Homestead Joey$ vagrant up
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: Box 'laravel/homestead' could not be found. Attempting to find and install...
homestead-7: Box Provider: virtualbox
homestead-7: Box Version: >= 0.4.0
==> homestead-7: Loading metadata for box 'laravel/homestead'
homestead-7: URL: https://atlas.hashicorp.com/laravel/homestead
==> homestead-7: Adding box 'laravel/homestead' (v1.0.1) for provider: virtualbox
homestead-7: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/1.0.1/providers/virtualbox.box
==> homestead-7: Successfully added box laravel/homestead' (v1.0.1) for 'virtualbox'!
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

如何解决主机路径的问题?

您真正的,

总数newb

您有一个从vagrantfile配置的同步文件夹,但此文件夹不存在。

在Mac上创建文件夹~/Code并再次运行(您可以运行mkdir -pv ~/Code

相关内容

最新更新