composer TransportException报错

  1. 错误展示
  2. 解决方案
  3. 可以先更新composer composer self-update,再次尝试
  4. 镜像设置中国 composer config -g repo.packagist composer https://packagist.phpcomposer.com
  5. secure-http 改成false composer config -g secure-http false
  6. 修改composer.json 文件
    {
      "repositories": {
          "packagist": {
              "type": "composer",
              "url": "https://packagist.phpcomposer.com"
          }
      }
    }
    

results matching ""

    No results matching ""