Laravel 尝试设置homestead时,bash init.sh没有创建my homestad.yaml文件

Laravel 尝试设置homestead时,bash init.sh没有创建my homestad.yaml文件,laravel,laravel-5,virtualbox,homestead,Laravel,Laravel 5,Virtualbox,Homestead,我正在尝试在Windows 7计算机上安装和设置我的VM/Homestead。我一直在按指示办事 但是,当尝试创建Homestead.yaml文件时,我得到以下结果 c:\sites\Homestead>bash init.sh mkdir: cannot create directory `//.homestead': No such file or directory cp: accessing `//.homestead/Homestead.yaml': No such host o

我正在尝试在Windows 7计算机上安装和设置我的VM/Homestead。我一直在按指示办事

但是,当尝试创建Homestead.yaml文件时,我得到以下结果

c:\sites\Homestead>bash init.sh
mkdir: cannot create directory `//.homestead': No such file or directory
cp: accessing `//.homestead/Homestead.yaml': No such host or network path
cp: accessing `//.homestead/after.sh': No such host or network path
cp: accessing `//.homestead/aliases': No such host or network path
Homestead initialized!
如何创建homestad.yaml文件

这是Homestead文件夹中所有文件的列表

c:\sites\Homestead>dir
 Volume in drive C has no label.
 Volume Serial Number is CEB9-FADD

 Directory of c:\sites\Homestead

07/24/2015  11:21 AM    <DIR>          .
07/24/2015  11:21 AM    <DIR>          ..
07/24/2015  11:21 AM                14 .gitattributes
07/24/2015  11:21 AM                18 .gitignore
07/24/2015  11:21 AM               497 composer.json
07/24/2015  11:21 AM             4,171 composer.lock
07/24/2015  11:21 AM             1,220 homestead
07/24/2015  11:21 AM               270 init.sh
07/24/2015  11:21 AM             1,077 LICENSE.txt
07/24/2015  11:21 AM               155 readme.md
07/24/2015  11:21 AM    <DIR>          scripts
07/24/2015  11:21 AM    <DIR>          src
07/24/2015  11:21 AM               876 Vagrantfile
               9 File(s)          8,298 bytes
               4 Dir(s)  188,985,827,328 bytes free
c:\sites\homestad>dir
驱动器C中的卷没有标签。
卷序列号为CEB9-FADD
c:\sites\homestad目录
2015年7月24日上午11:21。
2015年7月24日上午11:21。。
2015年7月24日上午11:21 14.00
2015年7月24日上午11:21 18.00
2015年7月24日上午11:21 497 composer.json
2015年7月24日11:21 AM 4171 composer.lock
2015年7月24日上午11:21 1220宅基地
2015年7月24日上午11:21 270 init.sh
2015年7月24日上午11:21 1077 LICENSE.txt
2015年7月24日上午11:21 155 readme.md
2015年7月24日上午11:21
2015年7月24日上午11:21 src
2015年7月24日上午11:21 876流浪汉档案
9个文件8298字节
4个目录188985827328字节可用

还有一件事,我需要先安装composer然后安装laravel吗?我有点困惑。在我看来,我需要打开VM的控制台才能在上面安装composer。如果是这种情况,如何从windows 7笔记本电脑打开虚拟机控制台?

我不确定这里的正确解决方案是什么,或者我的解决方法是否可行

这就是我所做的

我打开init.sh文件并更改了行

homesteadRoot=~/.homestead
“注意:确保键入Git克隆的“homestead”目录位置的正确路径”


这似乎有效。

尝试在Homestead目录(从git克隆的目录)内的git bash中运行此命令。我猜普通窗口命令行无法识别“~/”

homesteadRoot=C:/sites/homestead