vagrant up 之后却报语法错误

pardon110
  • 556

$ vagrant up --provision
D:/Program Files/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.3.0/psych.rb:379:
in `parse': (<unknown>): could not find expected ':' while scanning a simple key
at line 15 column 7 (Psych::SyntaxError)

    from D:/Program Files/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.3.0/

psych.rb:379:in `parse_stream'

    from D:/Program Files/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.3.0/

psych.rb:327:in `parse'

    from D:/Program Files/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.3.0/

psych.rb:254:in `load'

    from C:/Users/Administrator/Homestead/Vagrantfile:28:in `block in <top (

required)>'

    from D:/Program Files/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.7

/lib/vagrant/config/v2/loader.rb:37:in `load'

    from D:/Program Files/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.7

/lib/vagrant/config/loader.rb:125:in `block (2 levels) in load'

    from D:/Program Files/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.7

/lib/vagrant/config/loader.rb:119:in `each'

    from D:/Program Files/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.7

/lib/vagrant/config/loader.rb:119:in `block in load'

    from D:/Program Files/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.9.7

/lib/vagrant/config/loader.rb:116:in `each'

回复
阅读 4.8k
3 个回答

已解决了,是在编辑yaml配置文件时,使用了tab键,导致

不温柔
  • 3
新手上路,请多包涵

while scanning a simple key at line 11 column 5 11行语法错误

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏