Vagrant Homestead.yaml*Shell provisioner`args`必须是字符串或数组

Vagrant Homestead.yaml*Shell provisioner`args`必须是字符串或数组,vagrant,yaml,homestead,Vagrant,Yaml,Homestead,我正在编辑homestead.yaml文件,我确信缩进是正确的——但我发现以下错误: Bringing machine 'default' up with 'virtualbox' provider... There are errors in the configuration of this machine. Please fix the following errors and try again: shell provisioner: * Shell provisioner `args

我正在编辑homestead.yaml文件,我确信缩进是正确的——但我发现以下错误:

Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

shell provisioner:
* Shell provisioner `args` must be a string or array.
* Shell provisioner `args` must be a string or array.
* Shell provisioner `args` must be a string or array.
* Shell provisioner `args` must be a string or array.
My homestead.yaml文件:

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

authorize: ~/.ssh/id_rsa.pub

keys:
     - ~/.ssh/id_rsa

folders: 
     - map: ~/Sites
       to: /home/vagrant/Sites

sites: 
     - map: scheduleify.dev
       to: /home/vagrant/Sites/scheduleify/public

     - map: phpmyadmin.dev
       to: /home/vagrant/Sites/phpmyadmin

     - map: articles.dev
       to: /home/vagrant/Sites/learning-laravel5    

databases:
     - scheduleify

variables:
    - key: APP_ENV
  - value: local

你知道这个文件有什么问题吗

最后一行缩进不正确。确保它看起来像

variables:
    - key: APP_ENV
      value: local

还要检查主机上的所有路径是否存在。

我遇到了类似的问题,但原因略有不同:

variables:
    - key: ON_HOMESTEAD
      value: true  # Error
true
无效,应为
1

variables:
    - key: ON_HOMESTEAD
      value: 1

关于最后一行错误缩进的假设有任何反馈吗?谢谢你的回答;就这样!我可以发誓我回答了——工作忙得不可开交。是的,就是这样!缩进是一件非常痛苦的事情。对我来说,问题是我的站点设置的值部分有“-”。但是,同样的原则。谢谢谢谢,此解决方案帮助解决了我的问题。