Ruby unexpected ':', expecting kEND
问题 I want to set up vagrant on my Ubuntu, when "vagrant up", it always give me the following error syntax error, unexpected ':', expecting kEND config.vm.provision :shell, path: "vagrantprov.sh" I checked the Vagrantfile, it should be OK, can anyone tell me where the error is? Thanks. # -*- mode: ruby -*- # vi: set ft=ruby : # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config