php - 用Composer遇到的错误

 花自飘零009玲玲 发布于 2022-11-19 23:45
 - Installing phpunit/php-timer (1.0.7)
    Downloading: 100%
    Downloading: 100%
    Downloading: 100%
    Failed to download phpunit/php-timer from dist: The "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3e82f4e9fc92665fafd9157568e4dcb01d014e5b" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
    Now trying to download from source
  - Installing phpunit/php-timer (1.0.7)
    Cloning 3e82f4e9fc92665fafd9157568e4dcb01d014e5b



  [RuntimeException]
  Failed to clone git@github.com:sebastianbergmann/php-timer.git via git, https, ssh protocols, aborting.
  - git://github.com/sebastianbergmann/php-timer.git
    fatal: Unable to look up github.com (port 9418) (Temporary failure in name resolution)
  - https://github.com/sebastianbergmann/php-timer.git
    error: Couldn't resolve host 'github.com' while accessing https://github.com/sebastianbergmann/php-timer.git
  /info/refs

    fatal: HTTP request failed
  - git@github.com:sebastianbergmann/php-timer.git
    ssh: Could not resolve hostname github.com: Temporary failure in name resolution
    fatal: The remote end hung up unexpectedly



install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] []...

已经解决。。找不到host修改了hosts就好了

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有