Search code examples
laravelcygwinvagrantvagrant-windows

Unable to create vagrant file (homestead.yaml) on windows


I'm gonna to use vagrant on my windows desktop to develop Laravel project.
I have followed all the steps to do that. But it has been failed to create homestead.yaml using bash init.sh command.

Below is the error :
Fakhreddin@Lenovo-PC3 /cygdrive/d/laravel-vagrant/homestead $ bash init.sh cp: unwritable ‘/home/Fakhreddin/.homestead/Homestead.yaml’ (mode 0500, r-x------); try anyway?

I'm using Cygwin for simulating Unix terminal in the Windows.


Solution

  • (Copy of the comment I wrote above)

    Never used Cygwin in my life, but what I would try is to run it as Administrator and re-try.

    Otherwise, you may want to consider changing console client. For example, if you install Git, you should be able to use Unix commands via standard Windows console.

    I would seriously point the fault at Cygwin, or its settings. I am a member of a team in which all of us run Homestead on Windows 7, with no problems at all. The difference is, we use native Windows command line.