在box_add:undefined的窗口中,vagrant up失败

我已经花了几个小时,没有得到任何结果,试图stream浪了一箱。 它可以在我的Mac和我的两个同事mac上完美地工作,但是当试图在我的Windows桌面上stream浪时,我得到这样一个错误:

INFO runner:正在运行的动作:#C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.6.3/lib/vagrant/action/builtin/box_add.rb:358:in box_add': undefined method nil :NilClass(NoMethodError)

完整的错误日志可以在这里find: https : //gist.github.com/anonymous/f227b9fb37aae643d276#file-vagrantuperror

希望你们能帮助我,谢谢!

stream浪汉

我有同样的问题,并提出这个问题对stream浪者:

https://github.com/mitchellh/vagrant/issues/4100

看起来这个问题是由于Ruby的Pathname.join在Windows上的一些愚蠢行为造成的。

你应该可以解决这个问题,并通过设置config.vm.box_url到你的config.vm.box ,并设置config.vm.box为某个名字(.eg“ubuntu”)来运行你的机器。 这对我有效。

所以,根据你的日志,你想在你的Vagrant文​​件中是这样的

 Vagrant.configure("2") do |config| config.vm.box = "socialplus" config.vm.box_url = "http://ci.synergy-gb.com/socialplus.box" ... end