与Vagrant接受这个奇怪的错误,想知道是否有人可以伸出援助之手

Jef*_*ary 1 ruby ruby-on-rails vagrant

我正试图建立Vagrant.我正在关注网站上的指南,目前在指南的配置部分出现问题(http://vagrantup.com/docs/getting-started/provisioning.html)我已经完全按照这个内容进行了操作该网站,但我收到此错误,我在Mac OSX,如果它是任何重要的

evan@superduper ~/vagrant_guide $ vagrant up
    There was a problem with the configuration of Vagrant. The error message(s)
    are printed below:

    chef:
     * Run list must not be empty.
Run Code Online (Sandbox Code Playgroud)

这是我的Vagrant文​​件的代码,如果这也有帮助:

Vagrant::Config.run do |config|
    config.vm.box = "lucid32"

    # Enable the chef solo provisioner
    config.vm.provisioner = :chef_solo

    # Grab the cookbooks from the Vagrant files
    config.chef.recipe_url = "http://files.vagrantup.com/getting_started/cookbooks.tar.gz"
end
Run Code Online (Sandbox Code Playgroud)

这是什么来自我以及如何解决它?

谢谢

Ĵ

小智 6

您需要将此行添加到您的Vagrantfile:

config.chef.add_recipe("vagrant_main")
Run Code Online (Sandbox Code Playgroud)