git协议 unable to connect to github.com

错误信息

$ bower install jquery
...

npm ERR! Error while executing: 
npm ERR! D:\Program Files\git\cmd\git.exe ls-remote -h -t
git://github.com/adobe-webplatform/eve.git
npm ERR! 
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0:13.250.177.223]: errno=No such file or directory
npm ERR! 
npm ERR! 
npm ERR! exited with error code: 128

npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm ERR! Error while executing:
npm ERR! /bin/git ls-remote -h -t git://github.com/adobe-webplatform/eve.git
npm ERR! 
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 52.74.223.119]: errno=Connection refused
npm ERR! 
npm ERR! 
npm ERR! exited with error code: 128

解决方法

原因:需要用https才能读到数据

解决方法:

git config --global url.https://.insteadof=git://
上一篇 在线MP4转Gif
下一篇 在UltraEdit、Notepad++、EmEditor中使用正则表达式替换将字符串中的小写转换成大写
目录
文章列表
1 nginx-rtmp流媒体服务器搭建
nginx-rtmp流媒体服务器搭建
2
Spring Boot使用@ConfigurationProperties加载配置文件
Spring Boot使用@ConfigurationProperties加载配置文件
3
MyBatis mybatis-generator插件安装配置
MyBatis mybatis-generator插件安装配置
4
Android HTML.fromHtml解析图片标签
Android HTML.fromHtml解析图片标签
5
Linux下tar命令exclude选项排除指定文件或目录
Linux下tar命令exclude选项排除指定文件或目录
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。