Failed to write translation file Composer TransportException

I install laravel 4 and run the "composer install" command. He was able to successfully install 13 packages, but when it came time to install symfony / translation, he downloaded it 100% and then threw an error:

[Composer \ Downloader \ TransportException] " https://api.github.com/repos/symfony/Translation/zipball/6bc4b753c1ae5640c0eacdbe27c04a69cde3d10d " appears broken and returns an empty answer 200

Maybe because the original is 0 bytes? Is there any way to install this package?

+7
source share
3 answers

Drop it to make sure I see it too, so I think I can stop panicking now, as it seems to be a mistake somewhere between Packagist and Github (still a problem for my boss, but to say something, that This is not your fault!)

edit: I have this problem with kriswallsmith / assetic running symfony 2.1.9

update: Received an email from Github support indicating that this is a problem that they know about and are actively studying it.

I just added the "-prefer-source" flag until the problem is resolved from their end.

+9
source

I had this problem for twitter bootstrap:

[Composer\Downloaded\TransportException] The "https://api.github.com/repos/twitter/bootstrap/zipball/v2.3.1" file could not be written to /my/path/Symfony/vendor/twitter/bootstrap/e01f28f3c03a11c104bae8d4a1b59d21.1: 

Performing "composer self-updating" changed it to:

 [Composer\Downloader\TransportException] "https://api.github.com/repos/twitter/bootstrap/zipball/v2.3.1" appears broken, and returned an empty 200 response 

Using "composer update --prefer-source" seems to have installed it correctly.

So, it looks like the download of the github zip file is broken.

+3
source

find cacert.pem

vi / usr / local / lib / php.ini

add this

openssl.cafile = / usr / local / shares / perl5 / mozilla / ca / ​​cacert.pem

Esc

: wq #enter

curl -sS https://getcomposer.org/installer | php -version = 1.0.0-alpha10

mv composer.phar / usr / local / bin / composer

alias composer = '/ usr / local / bin / composer'

composer -V

php / usr / local / bin / composer global self-updating

cd.composer / composer init

0
source

All Articles