简体   繁体   English

流浪汉没有拿起laravel /宅基地盒

[英]Vagrant is not picking up laravel/homestead box

I've downloaded the homestead box manually because of much slow downloading via terminal. 我已经手动下载了宅基地盒,因为通过终端的下载速度很慢。 But after adding the box, vagrant is not finding it and attempting to download again. 但是在添加了该框之后,vagrant找不到了并尝试再次下载。

流浪汉查找错误

@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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM