2014-10-27 44 views
1

我试着去设置Windows 7的宅基地laravel流浪汉,我得到这个错误:宅基地laravel游民不允许窗口

C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/psych.rb:205:in `parse': 
(<unknown>): mapping values are not allowed in this context at line 13 
column 9 (Psych::SyntaxError) 

这是我的YAML文件:

authorize: C:/Users/Netanel/.ssh/id_rsa.pub 

keys: 
    - C:/Users/Netanel/.ssh/id_rsa 

folders: 
    - map:C:/projects 
     to: /home/vagrant/projects 

sites: 
    - map: test.com 
     to: /home/vagrant/projects/test/public 

variables: 
    - key: APP_ENV 
     value: local 

回答

8

的问题是缺乏map:之后的空间。您有:

folders: 
    - map:C:/projects 
     to: /home/vagrant/projects 

,它应该是:

folders: 
    - map: C:/projects 
     to: /home/vagrant/projects 
0

马辛Nabiałek是正确的,它可以与Homestead.yaml一个问题。

在我的情况下,使用Sublime,File> Save with Encoding> UTF-8解决了问题