尝试添加box laravel / homestead时出错

时间:2016-03-05 07:44:23

标签: laravel homestead

今天,我尝试在laravel主页上添加box laravel homestead文档。但我的笔记本电脑使用Windows 8.1时出错。第一步,我安装了vagrant,virtualbox并使用语法vagrant box add laravel/homestead。它会在git bash中显示错误日志:

The box 'laravel/homestead' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:

URL: ["https://atlas.hashicorp.com/laravel/homestead"]
Error:   

然后我尝试语法:vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead。它会显示错误:

$ vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'laravel/homestead' (v0) for provider:
    box: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead
    box:
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.     

我再次运行:rm ~/.vagrant.d/tmp/*vagrant up。但是没有工作。另外,另一台电脑一切都很好。我能做什么,有人吗?

1 个答案:

答案 0 :(得分:1)

如果您遇到类似问题,请尝试检查卷曲,或者如果您在Windows下使用git bash,则可以简单地复制一个。

cp /mingw64/bin/curl.exe /c/HashiCorp/Vagrant/embedded/bin/curl.exe