Greetings!
I am informing that I had this problem using Vagrant + Windows 10 pro + PHP 8
following guidelines written in the official Laravel documentation.
When I installed the project using windows composer, everything worked normally. But when I tried to use vagrant composer using SSH (vagrant ssh) I had this error.
Install of composer/package-versions-deprecated failedCould not delete /home/vagrant/autodeploy/vendor/phpdocumentor/reflection-common:
After much researching, I found the solution this error shown below:
Using the vagrant user via ssh execute all the commands below:sudo apt updatecd ~curl -sS https://getcomposer.org/installer -o composer-setup.phpHASH="curl -sS https://composer.github.io/installer.sig"php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
After that the composer install and update will work perfectly.
Greetings! I am informing that I had this problem using Vagrant + Windows 10 pro + PHP 8 following guidelines written in the official Laravel documentation. When I installed the project using windows composer, everything worked normally. But when I tried to use vagrant composer using SSH (vagrant ssh) I had this error.
After much researching, I found the solution this error shown below:
Install of composer/package-versions-deprecated failed
Could not delete /home/vagrant/autodeploy/vendor/phpdocumentor/reflection-common:
Using the vagrant user via ssh execute all the commands below:
sudo apt update
cd ~
curl -sS https://getcomposer.org/installer -o composer-setup.php
HASH="curl -sS https://composer.github.io/installer.sig"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
After that the composer install and update will work perfectly.