laravel - 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!
,但很多时候它会失败。
到目前为止,我已经尝试过:
composer clearcache
- 重新安装流浪汉
- 重新安装 vagrant laravel/homestead 盒子
- 重新安装宅基地
- 停用 Windows Linux 子系统。在错误开始的时候,我为了另一个目的启用了它,并想知道它是否做了一些区分大小写的事情。
都没有效果。有任何想法吗?
解决方案
解决了
最后通过重新安装 VirtualBox、Vagrant、Vagrant homestead 盒子和 Homestead 使其工作。在重新安装 VirtualBox 和 Vagrant 之前,我删除了我的 homestead 目录和所有相关的应用程序数据文件(在我的例子中位于 C:\Users\USERNAME)。
VirtualBox 中的网络问题似乎正在破坏“laravel new”进程中“git clone”命令提取的文件。
推荐阅读
- apache-kafka - KSQLDB 创建带有句点的流/主题
- sql - Sql Count 正在返回所有行值
- spring-batch - 带有远程分区器参数的 Spring Batch JobLauncher
- hive - 相关子查询的解决方法
- python - Python SQLAlchemy joinload 过滤器参数
- html - 添加子元素时,与内联块并排布局的 div 更改布局
- asp.net - 如何根据用户的 ASP.NET 身份角色对用户完全隐藏元素?
- python - 带有 py 下划线扩展名的 Jupyter 配置 python 文件
- swift - 按月/日对日期数组进行排序的最简洁方法,忽略年份
- c# - Net Core IWebHostEnvironment 仅获得“c:\”