'Composer always fails to install symfony/var-dumper
I'm trying to install the latest version of Laravel 8 on the latest version of Homestead. When I run composer install or composer update, installation of symfony/var-dumper always fails:
Installing symfony/var-dumper (v5.2.6): Extracting archive
Install of symfony/var-dumper failed
[ErrorException]
file_get_contents(/home/vagrant/code/vendor/symfony/var-dumper/Resources/bin/var-dump-server):
Failed to open stream: No such file or directory
Despite the error exception, the file /vendor/symfony/var-dumper/Resources/bin/var-dump-server does exist.
Things I've tried:
- Deleting the lock file and re-running
composer update - Manually specifying specific versions of
var-dumper, e.g.composer require symfony/var-dumper:5.2.0
I always get the same errors.
Solution 1:[1]
Remove /vendor folder, then run:
composer update -v
Solution 2:[2]
Composer version 2.2.4 2022-01-08 12:30:42
and
symfony/var-dumper v5.4.3
is working just fine
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Banik |
| Solution 2 | Yevgeniy Afanasyev |
