fxpio / composer-asset-plugin

NPM/Bower Dependency Manager for Composer
MIT License
893 stars 156 forks source link

Content-Length mismatch #290

Closed mnurulhuda closed 7 years ago

mnurulhuda commented 7 years ago

I have tried to install composer-asset-plugin and i run : composer global require "fxp/composer-asset-plugin:^1.2.0"

but the installation is failed. I get:

Installation failed, reverting ./composer.json to its original content. [Composer\Downloader\TransportException] Content-Length mismatch

How to solve my problem

francoispluchino commented 7 years ago

Try:

$ composer self-update
$ composer global remove fxp/composer-asset-plugin --no-plugins
$ composer global require fxp/composer-asset-plugin:^1.3.0 --prefer-dist
mnurulhuda commented 7 years ago

The result is same. result

francoispluchino commented 7 years ago

I have a doubt that the problem comes from my plugin. The file_get_contents function cannot read your composer.json file. What is your version of Composer?

mnurulhuda commented 7 years ago

Composer version 1.4.1 2017-03-10 09:29:45

I just installed the composer

francoispluchino commented 7 years ago

The problem does not come from the plugin. Create an issue in the Composer project.