0

I am installing VVV and stuck while executing "vagrant up" command. It is showing me following error:

C:/Users/Admin/.vagrant.d/gems/2.6.6/gems/vagrant-hostsupdater-1.2.0/lib/vagrant-hostsupdater/HostsUpdater.rb:152:in `+': no implicit conversion of nil into String (TypeError)

When I opened the ruby file,

elsif Vagrant::Util::Platform.windows?
          require 'tmpdir'
          uuid = @machine.id || @machine.config.hostsupdater.id
          tmpPath = File.join(Dir.tmpdir, 'hosts-' + uuid + '.cmd')
          File.open(tmpPath, "w") do |tmpFile|
          entries.each { |line| tmpFile.puts(">>\"#{@@hosts_path}\" echo #{line}") }
          end
          sudo(tmpPath)
          File.delete(tmpPath)

"tmpPath = File.join(Dir.tmpdir, 'hosts-' + uuid + '.cmd')" is the line which is giving me error.

I am trying to install VVV through a Youtube video, followed the exact steps given in the video, then how come that video isn't facing this error and I do.

Solanki Ketul
  • 31
  • 1
  • 7
  • 2
    Apparently, `uuid` is `nil` which means that neither `@machine.id` nor `@machine.config.hostsupdater.id` are set. – Stefan Dec 09 '20 at 12:09
  • this file gets added while doing "vagrant plugin install vagrant-hostsupdater". I do not know anything about ruby. how should I fix this problem? @Stefan – Solanki Ketul Dec 09 '20 at 12:17
  • Seems this issue has already been recognized [Issue 190](https://github.com/agiledivider/vagrant-hostsupdater/issues/190) and was resolved in master 6 days ago (https://github.com/agiledivider/vagrant-hostsupdater/commit/38eee8150cb659e69abebf4cc55eb2ad8e1bd4a5) – engineersmnky Dec 09 '20 at 19:53

0 Answers0