【问题标题】:Homestead can't see installed Vagrant BoxHomestead 看不到已安装的 Vagrant Box
【发布时间】:2017-08-05 19:48:33
【问题描述】:

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

==> 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: --:--:--)

我怎样才能让宅基地看到这个盒子已经安装了?

【问题讨论】:

    标签: laravel vagrant homestead


    【解决方案1】:

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

    我对 Homestead 不太熟悉,但我猜你使用的是旧版本的项目,它需要旧版本的 vagrant box。

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

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

    【讨论】:

      猜你喜欢
      • 2015-09-14
      • 1970-01-01
      • 2016-12-07
      • 1970-01-01
      • 2016-09-27
      • 2016-11-19
      • 1970-01-01
      • 2020-02-18
      • 1970-01-01
      相关资源
      最近更新 更多