Answer the question
In order to leave comments, you need to log in
How to execute composer update in vagrant?
There is an Ubuntu virtual machine created via vagrant, there is a site on the local machine that is synchronized with the guest machine using the setting in the Vagrantfile:
config.vm.synced_folder "www", "/home/vagrant/www", :create => true
. Also in settings:config.vm.network "forwarded_port", guest: 80, host: 8080
[Composer\Downloader\TransportException]
Content-Length mismatch
Answer the question
In order to leave comments, you need to log in
Yes, I had the same problem.
1. If there is an antivirus, then it is better to disable it for a while
2. Disabled ipv6:
sudo sh -c "echo 'precedence ::ffff:0:0/96 100' >> /etc/gai.conf"
php composer.phar config --global repo.packagist composer https://packagist.org
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question