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"
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:
to: /home/vagrant/project/public
databases:
- project
7. Run "vagrant up"