php - PHP Composer [Composer\Downloader\TransportException] curl 错误 61
问题描述
$ php composer.phar require predis/predis
https://repo.packagist.org could not be fully loaded (curl error 61 while downloading https://repo.packagist.org/packages.json: Unrecognized content encoding type. libcurl understands identity content encodings.), package information was loaded from the local cache and may be out of date
[Composer\Downloader\TransportException]
curl error 61 while downloading https://repo.packagist.org/p2/predis/predis.json: Unrecognized content encoding type. libcurl understands identity content encodings.
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-scripts] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [<packages>]...
我在 Ubuntu 16.04 curl 7.63.0 (x86_64-pc-linux-gnu) libcurl/7.63.0 OpenSSL/1.1.1j nghttp2/1.7.1 上安装了新的 curl 发布日期:2018-12-12 协议:dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp 特性:AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL TLS-SRP HTTP2 UnixSockets HTTPS-proxy
现在作曲家无法从packagist安装任何东西
解决方案
推荐阅读
- c++ - /usr/bin/ld: 找不到 -l
编译时出错(没有 sudo) - powershell - 确定属性的可能值
- algorithm - 确定层次结构中的两个节点是否已连接
- r - 以其他列为条件将常量添加到数据框列
- python - 在任意 X 坐标处确定 B 样条的值
- c# - Unity3D向右/向左移动失败
- java - 在 JPA-/CrudRepository 的自定义 @Query 中使用 SQL-IN 子句与列表或设置为传递参数?
- html - RDCOMClient 问题的 UTF-8 编码
- html - 剔除过滤器无法正常工作
- java - 使用 com.google.common.hash 中的 Hashing 类是否安全?