首页 > 代码库 > laraval composer Content-Length mismatch解决方案

laraval composer Content-Length mismatch解决方案

  1. 假如是虚拟机安装,调高内存到4G;

  2. /root/.config/composer/config.json中配置

     {

    "config":{"secure-http":false},

    "repositories": {

        "packagist": {

            "type": "composer",

            "url": "https://packagist.phpcomposer.com"

        }

      }

    }

 3.生成网站

composer create-project --prefer-dist laravel/laravel blog


laraval composer Content-Length mismatch解决方案