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" 

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vagrant-up/f6d083af-2d7f-4369-b370-df785df2df8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to