Composer Content-Length Mismatch

First, run: composer config –list –global //this will get the composer home path. [home] /root/.composer //it’s my composer home path. And then, edit the config.json, make it like this: { “config”: { “github-protocols”: [ “https” ] }, “repositories”: { “packagist.org”: { “type”: “composer”, “url”: “https://packagist.org” } } } It will make the packagist connection force … Read more