搜索
php - 用Composer遇到的错误
PHPz
PHPz 2017-04-10 16:31:41
[PHP讨论组]
 - 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] [--] [<packages>]...

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

PHPz
PHPz

学习是最好的投资!

全部回复(0)
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号