Laravel Homestead 安装后无法启动 vagrant (vagrant up)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24189128/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't start vagrant after Laravel Homestead installation (vagrant up)
提问by Salvador Maine
I followed all the steps in the laravel homestead installation, but after issuing 'vagrant up' command I get this messages:
我遵循了 laravel homestead 安装中的所有步骤,但是在发出“vagrant up”命令后,我收到了以下消息:
C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>
): found a tab character that violate intendation while scanning a plain scalar
at line 17 column 11 (Psych::SyntaxError)
from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/psych.rb:205:in `parse
_stream'
from C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/psych.rb:153:in `parse
'
What can be the problem?
可能是什么问题?
回答by Salvador Maine
Ok, I got it... Vagrant is not fond of tabs in the Homestead.yaml file... The indentation must be with spaces and exact.
好的,我明白了... Vagrant 不喜欢 Homestead.yaml 文件中的制表符...缩进必须有空格且准确。
Just substituted the tabs with spaces and vagrant is able to start.
只需用空格替换制表符,vagrant 就可以启动了。