Homestead看不到安装的Vagrant Box

时间:2017-03-15 07:33:08

标签: laravel vagrant homestead

Laravel Homestead看不到Vagrant Box,即使它已被添加,它也会尝试再次下载。我删除了临时文件。如果我尝试再次手动添加它,如果失败,因为它已经安装

==> box: Loading metadata for box 'laravel/homestead'
box: URL: https://atlas.hashicorp.com/laravel/homestead
This box can work with multiple providers! The providers that it can work
with are listed below. Please review the list and choose
the provider you will be working with.
1) hyperv
2) parallels
3) virtualbox
4) vmware_desktop
Enter your choice: 3
==> box: Adding box 'laravel/homestead' (v2.0.0) for provider: virtualbox
The box you're attempting to add already exists. Remove it before
adding it again or add it with the `--force` flag.
Name: laravel/homestead
Provider: virtualbox
Version: 2.0.0

当家园运行时:

homestead up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'laravel/homestead' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: < 0.4.0
==> default: Loading metadata for box 'laravel/homestead'
    default: URL: https://atlas.hashicorp.com/laravel/homestead
==> default: Adding box 'laravel/homestead' (v0.3.3) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.3.3/providers/virtualbox.box
    default: Progress: 0% (Rate: 0/s, Estimated time remaining: --:--:--)

如何让家园看到这个盒子已经安装?

1 个答案:

答案 0 :(得分:0)

我认为这就是发生的事情:当您执行vagrant box add laravel/homestead命令时,它将下载当前版本(在本例中为2.0.0)。但是,当您调出Vagrant VM时,它似乎正在寻找特定的旧版本0.3.3。如果执行vagrant box list这两个步骤,您可能会看到两个版本。

我对Homestead不太熟悉,但我猜你是在使用旧版本的项目而且需要旧版本的流浪盒。

如果你想下载特定版本的盒子,你可以这样做:

vagrant box add laravel/homestead --box-version 0.3.3