首页 > 解决方案 > Laravel Homestead - 随机“提取失败”错误

问题描述

Windows 10 / VirtualBox / Vagrant / Homestead

每次运行时,我都开始遇到如下随机错误laravel new PROJECT

85/95 [=========================>--]  89%    Failed to extract laravel/framework: (2) unzip -qq  '/home/vagrant/code/PROJECT/vendor/composer/tmp-f4716ecd4eeb00c7e1d90a043cc4a5b5' -d '/home/vagrant/code/PROJECT/vendor/composer/123a874a'
/home/vagrant/code/PROJECT/vendor/composer/123a874a/laravel-framework-6350d19/src/Illuminate/Database/Eloquent/Collection.php  bad CRC 5a1bfd51  (should be 58446226)
The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class

错误每次发生在不同的包上。有时该过程会完成并显示Application ready!,但很多时候它会失败。

到目前为止,我已经尝试过:

都没有效果。有任何想法吗?

标签: laravelcomposer-phphomestead

解决方案


解决了

最后通过重新安装 VirtualBox、Vagrant、Vagrant homestead 盒子和 Homestead 使其工作。在重新安装 VirtualBox 和 Vagrant 之前,我删除了我的 homestead 目录和所有相关的应用程序数据文件(在我的例子中位于 C:\Users\USERNAME)。

VirtualBox 中的网络问题似乎正在破坏“laravel new”进程中“git clone”命令提取的文件。


推荐阅读