Windows 10 / VirtualBox / Vagrant / Homestead
I've begun experiencing random errors like the following every time I run "laravel new PROJECT":
- Installing phpunit/phpunit (9.5.0): Extracting archive 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
The errors occur on different packages each time. Sometimes the process completes and displays "Application ready!", many times it fails.
So far I've tried:
- composer clearcache
- reinstalling vagrant
- reinstalling vagrant laravel/homestead box
- reinstalling homestead
- deactivating the Windows Linux subsystem. I had enabled it for another purpose around the time the errors began, and wondered if it did something with case sensitivity.
All with no effect. Any ideas?
composer install --prefer-source
which will pull a non archived version of the source, I think. – Alex Mac