【发布时间】:2018-10-12 16:51:05
【问题描述】:
我的机器 (MacBookPro) 上运行着 VirtualBox 上的一个 Vagrantfile,它运行良好。然后我安装了另一个 Vagrantfile。
即使我将它们都销毁了,我仍然无法使用 vagrant up 加载它
我手动关闭了所有虚拟机,但仍然出现此错误...
$ vagrant up
There was an error loading a Vagrantfile. The file being loaded and the error message are shown below. This is usually caused by a syntax error.
Path: /Users/actual_username/.vagrant.d/boxes/actual_vagrantfile_name/0.3-centos-actualSNAPSHOT_number/virtualbox/Vagrantfile
Line number: 0
Message: NameError: undefined local variable or method `config' for main:Object
【问题讨论】:
标签: vagrant virtual-machine vagrantfile vagrant-plugin