title: Content-Length mismatch, received 376567 bytes out of the expected 1478361
body: <p>I have recently created fresh Laravel project using composer. The Laravel version is 7.15.</p>
  <p>Now when I am trying to install composer laravel/ui package, following error occures</p>
  <pre><code>Content-Length mismatch, received 376567 bytes out of the expected 1478361
  https://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
  </code></pre>
  <p>I tried to run <code>composer update</code> command but same error is occuring.</p>
  <p>This error didn't occur when I installed laravel. I haven't updated the composer.</p>
  <p>After googling, I found this answer on Stackoverflow,
  <a href="https://stackoverflow.com/a/38635258">https://stackoverflow.com/a/38635258</a>
  but unfortunately it's not working for me.</p>
  <p>I even tried reinstalling the composer but error remains the same
  (Reinstalling the composer had worked for me in the past)</p>
  <p>I am sharing my config.json as well as composer.json.</p>
  <p><strong>config.json</strong></p>
  <pre><code>{
    &quot;config&quot;: {
      &quot;github-protocols&quot;: [
        &quot;https,ssh&quot;
      ]
    },
    &quot;repositories&quot;: {
      &quot;packagist&quot;: {
        &quot;type&quot;: &quot;composer&quot;,
        &quot;url&quot;: &quot;https://packagist.org&quot;
      }
    }
  }
  </code></pre>
  <p><strong>composer.json</strong></p>
  <pre><code>{
      &quot;name&quot;: &quot;laravel/laravel&quot;,
      &quot;type&quot;: &quot;project&quot;,
      &quot;description&quot;: &quot;The Laravel Framework.&quot;,
      &quot;keywords&quot;: [
          &quot;framework&quot;,
          &quot;laravel&quot;
      ],
      &quot;license&quot;: &quot;MIT&quot;,
      &quot;require&quot;: {
          &quot;php&quot;: &quot;^7.2.5&quot;,
          &quot;fideloper/proxy&quot;: &quot;^4.2&quot;,
          &quot;fruitcake/laravel-cors&quot;: &quot;^1.0&quot;,
          &quot;guzzlehttp/guzzle&quot;: &quot;^6.3&quot;,
          &quot;laravel/framework&quot;: &quot;^7.0&quot;,
          &quot;laravel/tinker&quot;: &quot;^2.0&quot;,
          &quot;laravel/ui&quot;: &quot;^2.0&quot;
      },
      &quot;require-dev&quot;: {
          &quot;facade/ignition&quot;: &quot;^2.0&quot;,
          &quot;fzaninotto/faker&quot;: &quot;^1.9.1&quot;,
          &quot;mockery/mockery&quot;: &quot;^1.3.1&quot;,
          &quot;nunomaduro/collision&quot;: &quot;^4.1&quot;,
          &quot;phpunit/phpunit&quot;: &quot;^8.5&quot;
      },
      &quot;config&quot;: {
          &quot;optimize-autoloader&quot;: true,
          &quot;preferred-install&quot;: &quot;dist&quot;,
          &quot;sort-packages&quot;: true
      },
      &quot;extra&quot;: {
          &quot;laravel&quot;: {
              &quot;dont-discover&quot;: []
          }
      },
      &quot;autoload&quot;: {
          &quot;psr-4&quot;: {
              &quot;App\\&quot;: &quot;app/&quot;
          },
          &quot;classmap&quot;: [
              &quot;database/seeds&quot;,
              &quot;database/factories&quot;
          ]
      },
      &quot;autoload-dev&quot;: {
          &quot;psr-4&quot;: {
              &quot;Tests\\&quot;: &quot;tests/&quot;
          }
      },
      &quot;minimum-stability&quot;: &quot;dev&quot;,
      &quot;prefer-stable&quot;: true,
      &quot;scripts&quot;: {
          &quot;post-autoload-dump&quot;: [
              &quot;Illuminate\\Foundation\\ComposerScripts::postAutoloadDump&quot;,
              &quot;@php artisan package:discover --ansi&quot;
          ],
          &quot;post-root-package-install&quot;: [
              &quot;@php -r \&quot;file_exists('.env') || copy('.env.example', '.env');\&quot;&quot;
          ],
          &quot;post-create-project-cmd&quot;: [
              &quot;@php artisan key:generate --ansi&quot;
          ]
      }
  }
  </code></pre>
  <p><strong>Output of <code>composer diagnose</code></strong></p>
  <pre><code>Checking composer.json: OK
  Checking platform settings: OK
  Checking git settings: OK
  Checking http connectivity to packagist: OK
  Checking https connectivity to packagist: OK
  Checking github.com rate limit: OK
  Checking disk free space: OK
  Checking pubkeys:
  Tags Public Key Fingerprint: 57815BA2 7E57DC31 7ECC7CC5 573890D0  87719BA6 8F3BB723 4E5D42D0 84A14642
  Dev Public Key Fingerprint: 4AC45767 E5EC0265 2F0C1167 CBBC8A2B  0C708369 153E328C AD90147D AFE50952
  OK
  Checking composer version: OK
  Composer version: 1.10.7
  PHP version: 7.4.1
  PHP binary path: C:\xampp\php\php.exe
  OpenSSL version: OpenSSL 1.1.1d  10 Sep 2019
  </code></pre>
  <p>Kindly help me out, without composer I can't proceed with my Laravel project.</p>