[英]Vagrant is not picking up laravel/homestead box
@FrédéricHenri Thanks. @FrédéricHenri谢谢。 I found that the box was added directly instead of from a box catalog so vagrant try to check the updates and failed.
我发现该框是直接添加的,而不是从框目录添加的,所以流浪汉尝试检查更新并失败了。 So i simply just disable the check update.
所以我只是禁用检查更新。
config.vm.box_check_update = false
OR 要么
For updates. 有关更新。 I added
metadata_url
file in laravel-VAGRANTSLASH-homestead
containing the url pointing to the box 我在
laravel-VAGRANTSLASH-homestead
中添加了metadata_url
文件,其中包含指向该框的URL
https://vagrantcloud.com/laravel/homestead
This happens when we add box from file, Vagrant marks as it is version 0
by default. 当我们从文件中添加框时会发生这种情况,Vagrant标记为默认为版本
0
。
Solution I found When I got same error I renamed the folder 0
to the corresponding version in my case it was 0.4.2
inside this path ~/.vagrant.d/boxes/laravel-VAGRANTSLASH-homestead
. 我发现的解决方案当遇到相同的错误时,我将文件夹
0
重命名为对应的版本(在我的情况下,此路径为~/.vagrant.d/boxes/laravel-VAGRANTSLASH-homestead
内的0.4.2
。 Then if you vagrant up
from homestead project you may get error. 然后,如果您从宅基地项目中
vagrant up
您可能会出错。 So you can add catalog file metadata_url
file. 因此,您可以添加目录文件
metadata_url
文件。 with url https://atlas.hashicorp.com/laravel/boxes/homestead in laravel-VAGRANTSLASH-homestead
directory. 在
laravel-VAGRANTSLASH-homestead
目录中使用网址https://atlas.hashicorp.com/laravel/boxes/homestead 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.