Error occurs after executing vagrant up command using git-bash on windows 10

15 views
Skip to first unread message

Johnson Lee

unread,
Jun 25, 2019, 4:03:26 PM6/25/19
to Vagrant
Hi All, I'm trying to set up the local development with homestead following the official document. When executing the "vagrant up" command, it displays message below. Could anyone advise how to solve the issue? I looked up all related issues online but don't find a solution. Thank you in advance.

Vagrant failed to initialize at a very early stage:

There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
an invalid or undefined variable.

Path: C
Line number: 0
Message: undefined method `each'



Operation steps:
1. Install virtual box.
2. Install vagrant and restart computer.
3. Run "vagrant box add laravel/homestead"
4. Run "git clone https://github.com/laravel/homestead.git Homestead"
5. Run "init.bat" through CMD in homestead directory
6. Edit content of Homestead.yaml to below:
---
ip: "192.168.10.10"
memory: 2048
cpus: 2
provider: virtualbox

authorize: c:/Users/myusername/.ssh/id_rsa.pub

keys:
    c:/Users/myusername/.ssh/id_rsa

folders:
    - map: c:/project
      to: /home/vagrant/project

sites:
    - map: test.app
      to: /home/vagrant/project/public

databases:
    - project
7. Run "vagrant up" 
Reply all
Reply to author
Forward
0 new messages