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

前端之家收集整理的这篇文章主要介绍了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
原文链接:https://www.f2er.com/windows/370996.html

猜你在找的Windows相关文章