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

Har*_*nka 24 vagrant laravel

我正在尝试安装 laravel homestead 并且无法通过添加 homestead 框。

指令是: 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
Run Code Online (Sandbox Code Playgroud)

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

我正在尝试安装 Laravel homestead 并且不知道解决这个问题,因为我是 Laravel vagrant 的新手。我在网上搜索了特定问题,但找不到与上述相关的任何解决方案,因此感谢您提供任何帮助。

小智 19

正如 Vagrant 的CHANGELOG.md 文件中提到的,现在支持新的校验和类型。只需将 Vagrant 更新到最新版本(2.2.6)就可以了。

然后你可以vagrant box update升级 Homestead 盒子。


Nik*_*las 9

就我而言,我在日志中看到尝试安装的版本是v9.2.2-alpha1

框:为提供者添加框“laravel/homestead”(v9.2.2-alpha1):virtualbox

对我有用的是使用以下参数定义版本

--box-version=9.1.1
Run Code Online (Sandbox Code Playgroud)

IE

vagrant box add laravel/homestead --checksum-type=sha256 --box-version=9.1.1
Run Code Online (Sandbox Code Playgroud)

另外,尝试下载并安装最新版本的 vagrant。


Kir*_*iya 8

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

vagrant box add laravel/homestead --checksum-type sha256
Run Code Online (Sandbox Code Playgroud)

这是使用命令行时要参考的文档