当我尝试安装laravel宅基时,我遇到了问题 我尝试这个时使用git终端
$ vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead
我收到此错误
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'laravel/homestead' (v0) for provider:
box: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead
box:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Could not resolve host: (nil); Host not found
答案 0 :(得分:2)
最有可能你应该更新Vagrant。您应该使用此提交修复您的问题:https://github.com/mitchellh/vagrant/commit/5f12126d32dfa30f5f48d12724eeb29222942cb0
如果您不想更新Vagrant,那么解决方法是在Vagrantfile中取消注释此参数:
config.vm.box_check_update = false