【问题标题】:Can't install laravel homestead无法安装 laravel 宅基地
【发布时间】:2020-03-18 22:28:57
【问题描述】:

我正在尝试在我的 Windows 8.1 上设置 laravel,但一直遇到错误。谁能告诉我这里出了什么问题以及如何对其进行排序?我根据需要进行了 vagrant 和 virtualbox 设置。谢谢。

C:\Users\Robin>vagrant box add laravel/homestead
==> box: Loading metadata for box 'laravel/homestead'
    box: URL: https://atlas.hashicorp.com/laravel/homestead
==> box: Adding box 'laravel/homestead' (v0.2.2) for provider: virtualbox
    box: Downloading:
    https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.2.2/providers/virtualbox.box
    box: Progress: 100% (Rate: 582k/s, Estimated time remaining: --:--:--)
The box failed to unpackage properly. Please verify that the box
file you're trying to add is not corrupted and try again. The
output from attempting to unpackage (if any):

x ./box-disk1.vmdk: Write failed
x ./box.ovf: Write failed
x ./Vagrantfile: Can't create '\\\\?\\C:\\Users\\Robin\\.vagrant.d\\tmp\\vagrant-box-add-temp-
20150112-14824-106nj0l\\Vagrantfile'
bsdtar.EXE: Error exit delayed from previous errors.

【问题讨论】:

    标签: laravel virtualbox


    【解决方案1】:

    对我来说,问题是盒子的下载没有完全成功,但是文件“损坏”了。您可以多次重试该命令,因为 vagrant 会从上次失败的下载中恢复下载:

    vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead
    

    【讨论】:

    • 在我的系统中,这与@PHZ.fi-Pharazon 所说的问题相同,我不得不多次重新启动下载。另一个建议是暂时禁用您的防病毒软件。
    【解决方案2】:

    试试这个命令:

    vagrant box add laravel/homestead https://atlas.hashicorp.com/laravel/boxes/homestead

    请告诉我它是否有效,否则我将删除它(我无法评论)

    【讨论】:

      猜你喜欢
      • 2017-11-11
      • 2016-10-01
      • 2021-06-30
      • 2016-03-30
      • 1970-01-01
      • 1970-01-01
      • 2019-08-22
      • 2016-06-21
      相关资源
      最近更新 更多