laravel homestead Windows 7上共享文件夹的主机路径丢失错误 [英] laravel homestead the host path of shared folder missing error on windows 7

查看:77
本文介绍了laravel homestead Windows 7上共享文件夹的主机路径丢失错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows 7计算机上设置laravel宅基.我安装了vagrant和virtualbox.还有git bash shell.

I am trying to set up laravel homestead on my windows 7 machine . I installed vagrant and virtualbox. Also the git bash shell.

没有

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

将composer供应商bin添加到了环境变量中.因此,现在可以从shell上访问homestead命令

added composer vendor bin to environment variables.So, homestead command is now accessible from shell

homestead init   

我已经编辑了Homestead.yaml文件,这就是配置.

I had edited my Homestead.yaml file and this is the configuration .

我的laravel项目当前在配置中提到的目录中.即(E://)目录

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

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

现在每当执行homestead up时,我就会收到错误

now whenever I do homestead up, I am getting the error

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正常工作.我不确定我在这里缺少什么.这一定是愚蠢的,但是任何帮助都将不胜感激.

I have made sure that cd /e/Projects/Code/apache/laravel is working .I am not sure what I am missing here.Must be something silly, but any help would be appreciated.

推荐答案

错误很简单.告诉你

The host path of the shared folder is missing: /e/Projects/Code/apache/laravel

您的共享文件夹丢失.根据您的问题.您正在使用窗口.因此,窗口不应像

Your shared folder is missing. According to your question. You are using window. So, window shouldn't work like

cd /e/Projects/Code/apache/laravel

应该像YourPartitionName:/Yourdirectory.

示例:

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

这篇关于laravel homestead Windows 7上共享文件夹的主机路径丢失错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆