阿里云ECS 无法使用composer update

使用阿里云ecs,运行composer update,更新到一半,总是会提示 :

   Downloading: 100%
    Failed to download 2amigos/yii2-ckeditor-widget from dist: The "https://api.github.com/repos/2amigos/yii2-ckeditor-widget/zipball/023eb29fedfc3c3121c17688ed237e8688f5eb50" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Name or service not known
failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
    Now trying to download from source
  - Installing 2amigos/yii2-ckeditor-widget (1.0.4)
    Cloning 023eb29fedfc3c3121c17688ed237e8688f5eb50

	
	 Failed to download 2amigos/yii2-date-time-picker-widget from dist: The "https://api.github.com/repos/2amigos/yii2-date-time-picker-widget/zipball/1248491c959d7080ab45c5284429e3d9222ed282" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Name or service not known
failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
    Now trying to download from source

	php -r  "getaddrinfo('api.github.com');" | php
	



但ping api.github.com 却是可以ping得通,而一开始可以访问,到后来却无法下载。奇怪的事情。

在linode vps上使用composer update从来都没遇到任何问题。国内的VPS各种



 - Installing yiisoft/yii2 (2.0.4)
    Downloading: 100%
    Downloading: 100%
    Downloading: 100%
    Failed to download yiisoft/yii2 from dist: The "https://api.github.com/repos/yiisoft/yii2-f                      ramework/zipball/726867caee3f23aa7a6975c801e64b6021e14f86" file could not be downloaded: php_ne                      twork_getaddresses: getaddrinfo failed: Name or service not known
failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
    Now trying to download from source
  - Installing yiisoft/yii2 (2.0.4)
    Cloning 726867caee3f23aa7a6975c801e64b6021e14f86


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值