問題描述
我正在嘗試按照 此處.
我安裝了 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 mp
刪除部分下載文件,然后再試一次.
A. Go to .vagrant.d mp
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.)
這篇關于無法安裝 Vagrant box Laravel Homestead的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!