Bash init.sh does not create my homestead.yaml file when trying to configure Homestead

I am trying to install and configure my VM / Homestead on a Windows 7 machine. I followed the instructions http://laravel.com/docs/5.1/homestead#installation-and-setup

However, when I try to create the Homestead.yaml file, I get the following

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!

What can I do to create a homestead.yaml file?

here is a list of the whole file inside the Homestead folder

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

Another thing I need to install a composer and then laravel first? I'm a little confused. It seems to me that I will need to open the console for the virtual machine in order to install the composer on it. if so, how do I open the console for a virtual machine from my Windows 7 laptop?

+4
source share
2

, , - .

, .

init.sh

homesteadRoot=~/.homestead

": , " homestead ", Git"

homesteadRoot=C:/sites/homestead

, , .

+3

git bash Homestead (, git). , '~/'.

0

Source: https://habr.com/ru/post/1599570/


All Articles