Support the ongoing development of Laravel.io →
Installation Configuration

I've been following the tutorial on laracasts "Say Hello to Laravel Homestead 2.0".

And at the part that i can use "homestead up", i keep getting this error/message back:

/opt/vagrant/embedded/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>): mapping values are not allowed in this context at line 2 column 3 (Psych::SyntaxError)
	from /opt/vagrant/embedded/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
	from /opt/vagrant/embedded/lib/ruby/2.0.0/psych.rb:153:in `parse'
	from /opt/vagrant/embedded/lib/ruby/2.0.0/psych.rb:129:in `load'
	from /Users/lorienhd/.composer/vendor/laravel/homestead/Vagrantfile:17:in `block in <top (required)>'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/config/v2/loader.rb:37:in `call'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/config/v2/loader.rb:37:in `load'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/config/loader.rb:103:in `block (2 levels) in load'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/config/loader.rb:97:in `each'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/config/loader.rb:97:in `block in load'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/config/loader.rb:94:in `each'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/config/loader.rb:94:in `load'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/vagrantfile.rb:28:in `initialize'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/environment.rb:691:in `new'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/environment.rb:691:in `vagrantfile'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/environment.rb:441:in `host'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/environment.rb:207:in `block in action_runner'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/action/runner.rb:33:in `call'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/action/runner.rb:33:in `run'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/environment.rb:428:in `hook'
	from /opt/vagrant/embedded/gems/gems/vagrant-1.7.1/lib/vagrant/environment.rb:673:in `unload'
	from /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.1/bin/vagrant:177:in `ensure in <main>'
	from /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.1/bin/vagrant:177:in `<main>'

This is what my Homestead.yaml looks like:

-——
ip: "192.168.10.10"
memory: 2048
cpus: 1

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Development/Projects
      to: /home/vagrant/Projects

sites:
    - map: laravel.local
      to: /home/vagrant/Projects/Laravel/public

databases:
    - laravel_site

variables:
    - key: APP_ENV
      value: local

While searching for answers, i read that tabs instead of spaces in homestead.yaml could be a fix (but didn't work for me)

What could i be doing wrong?

Last updated 2 years ago.
0

Is there anyone that knows this issue or knows how it can be fixex?

0

I can't really tell in the code block but it looks like there is more than one return between the items, it might be complaining about that

cpus: 1
(one empty line)
authorize: ~/.ssh/id_rsa.pub
(one empty line)
keys:
    - ~/.ssh/id_rsa
(one empty line)
folders:
...

For the tabs issue, you will have to go line by line and remove them

0

Sign in to participate in this thread!

Eventy

Your banner here too?

lorienhd lorienhd Joined 20 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.