laravel homestead共享文件夹的主机路径在Windows 7上丢失错误

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

没有

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

添加作曲家供应商bin到环境变量.因此,现在可以从shell访问homestead命令

homestead init

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

我的Laravel工程目前在配置中提到的目录中. ie(E://)目录

folders:
    - map: /e/Projects/Code/apache/laravel
      to: /home/vagrant/Projects

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

现在每当我做宅基,我都会收到错误

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
相关文章
相关标签/搜索