无法安装游民箱Laravel Homestead [英] Can't install Vagrant box Laravel Homestead

查看:64
本文介绍了无法安装游民箱Laravel Homestead的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图按照此处上的官方文档说明,在Mac OS X上安装Laravel Homestead. >.

I'm trying to install Laravel Homestead on Mac OS X following the official documentation instructions on here.

我安装了VirtualBox和Vagrant.现在,我尝试使用命令vagrant box add laravel/homestead添加Homestead框.一段时间后,下载停止,但出现错误.它不允许我恢复下载,因此我必须删除部分下载文件并从零开始.我已经尝试了很多次.

I installed VirtualBox and Vagrant. Now I'm trying to add the Homestead box with the command vagrant box add laravel/homestead. After a while the download stops and I get an error. It doesn't let me restore the download so I have to delete the partial download file and start from zero. I've tried it many times.

我认为我的Internet连接需要做一些事情,因为它有点慢,而且文件很大.

I think my Internet connection has something to do since it's kinda slow and it's a large file.

这是完整的代码:

$ vagrant box add 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) virtualbox
2) vmware_desktop

Enter your choice: 1
==> box: Adding box 'laravel/homestead' (v0.2.7) for provider: virtualbox
    box: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.2.7/providers/virtualbox.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

transfer closed with 935392411 bytes remaining to read

重试后:

An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

HTTP server doesn't seem to support byte ranges. Cannot resume.

感谢您的帮助.

推荐答案

A .转到.vagrant.d\tmp\并删除部分下载文件,然后重试.

A. Go to .vagrant.d\tmp\ and delete the partial download file, then try again.

B..如果失败,则可以尝试使用浏览器或其他工具手动下载文件.下载后,您可以使用vagrant box add laravel/homestead path/to/virtualbox.box导入它.

B. If that fails, you could attempt downloading the file manually using a browser or other tool. Once downloaded, you can import it using vagrant box add laravel/homestead path/to/virtualbox.box.

(从下面的评论中添加第二个答案.)

(Edited: Adds second answer from comments below.)

这篇关于无法安装游民箱Laravel Homestead的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆