Laravel Homestead / Vagrant框错误:Vagrant不支持指定的校验和类型:sha512

问题描述 投票:1回答:2

我正在尝试安装laravel宅基地,但无法添加宅基地盒。

说明是:vagrant box add laravel/homestead

完成下载过程后,出现以下错误。

C:\Users\HARSHA - PC PRO>vagrant box add laravel/homestead
==> box: Loading metadata for box 'laravel/homestead'
    box: URL: https://vagrantcloud.com/laravel/homestead
==> box: Adding box 'laravel/homestead' (v9.0.1) for provider: virtualbox
    box: Downloading: https://vagrantcloud.com/laravel/boxes/homestead/versions/9.0.1/providers/virtualbox.box
==> box: Box download is resuming from prior download progress
    box: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com
    box: Progress: 100% (Rate: 188k/s, Estimated time remaining: --:--:--)
    box: Calculating and comparing box checksum...
The specified checksum type is not supported by Vagrant: sha512.
Vagrant supports the following checksum types:

md5, sha1, sha256

我在Windows 10 64位PC上,并已尝试使用virtualbox(版本6.0.0 r127566(Qt5.6.2))和vagrant_2.2.2_x86_64版本的这些说明。

我正在尝试安装Laravel宅基地,由于我是Laravel流浪者的新手,所以我不知道要解决这个问题。我在网上搜索了特定问题,但找不到与上述内容有关的任何解决方案,因此可以提供任何帮助。

laravel vagrant
2个回答
0
投票

您正在使用不受支持的校验和类型。请尝试使用--checksum-type参数进行安装。在下面给出,

vagrant box add laravel/homestead --checksum-type sha256

这里是使用命令行时要引用的Docs


0
投票

如Vagrant的CHANGELOG.md file中所述,现在支持新的校验和类型。简单地将updating Vagrant升级到最新版本(2.2.6)就可以解决问题。

然后您可以执行vagrant box update来升级Homestead盒子。

© www.soinside.com 2019 - 2024. All rights reserved.