LoginSignup
7
8

More than 5 years have passed since last update.

composerがContent-Length mismatchでエラーが出たときの対処法

Posted at

忘備録

------------------- ↓ 余談はここから ↓-------------------
ヾ(・ω<)ノ" 三三三● ⅱⅲ コロコロ♪


$ composer.phar require behat/behat

  [Composer\Downloader\TransportException]
  Content-Length mismatch

なんやこれ・・・。

------------------- ↓ 本題はここから ↓-------------------
ヾ(・ω<)ノ" 三三三● ⅱⅲ コロコロ♪


composer.jsonにrepositoriesを追加する。

composer.json
{
    "repositories": [ { "type": "composer", "url": "https://packagist.org" }, { "packagist": false } ],
    "require": {},
    "config": {
        "bin-dir": "bin/"
    }
}

------------------- ↓ 後書はここから ↓-------------------
ヾ(・ω<)ノ" 三三三● ⅱⅲ コロコロ♪


7
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
8