未找到框 'laravel/homestead' 的 "metadata.json" 文件

The "metadata.json" file for the box 'laravel/homestead' was not found

OC: Windows 10. 流浪汉:2.2.1.

我运行:

vagrant box add laravel/homestead --provider virtualbox

出现错误:

==> box: Loading metadata for box 'laravel/homestead'
    box: URL: https://vagrantcloud.com/laravel/homestead
==> box: Adding box 'laravel/homestead' (v6.4.0) for provider: virtualbox
The "metadata.json" file for the box 'laravel/homestead' was not found.
Boxes require this file in order for Vagrant to determine the
provider it was made for. If you made the box, please add a
"metadata.json" file to it. If someone else made the box, please
notify the box creator that the box is corrupt. Documentation for
box file format can be found at the URL below:

https://www.vagrantup.com/docs/boxes/format.html

在此之前,我已经执行了这个命令,我添加了盒子,一切都对我有用,但后来我决定通过 vagrant box remove laravel/homestead 删除盒子并再次添加它。

问题已通过删除 ~\.vagrant.d\boxes 目录中的 laravel-VAGRANTSLASH-homestead 文件夹解决(C:\Users\User\.vagrant.d\boxes 我的情况)。

之后我成功了运行:

$ vagrant box add laravel/homestead --provider virtualbox
==> box: Loading metadata for box 'laravel/homestead'
    box: URL: https://vagrantcloud.com/laravel/homestead
==> box: Adding box 'laravel/homestead' (v6.4.0) for provider: virtualbox
    box: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/6.4.0/providers/virtualbox.box
    box: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
    box:
==> box: Successfully added box 'laravel/homestead' (v6.4.0) for 'virtualbox'!

我希望这对某人有所帮助。