发布于 2015-10-03 00:56:27 | 5079 次阅读 | 评论: 1 | 来源: PHPERZ

这里有新鲜出炉的精品教程,程序狗速度看过来!

Github代码托管服务

Github是全球最大的社交编程及代码托管网站,作为开源代码库以及版本控制系统,Github目前拥有140多万开发者用户。随着越来越多的应用程序转移到了云上,Github已经成为了管理软件开发以及发现已有代码的首选方法。


问题描述

在使用brew工具时,报了以下错误,github API 访问的权限限制

Error:GitHub API rate limit exceeded for [xxxx]. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
Try again in 5 minutes 54 seconds, or create an personal access token:
  https://github.com/settings/tokens
and then set the token as: HOMEBREW_GITHUB_API_TOKEN

解决方法

按照报错说明

首先打开  https://github.com/settings/token

登陆后,输入Homebrew,生成token

设置环境变量HOMEBREW_GITHUB_API_TOKEN:

将HOMEBREW_GITHUB_API_TOKEN变量设置为获取到的token,在终端输入:

export HOMEBREW_GITHUB_API_TOKEN=XXXXXXXXXX


最新网友评论  共有(1)条评论 发布评论 返回顶部
lqva 发布于2016-04-22 00:06:58
1W个赞,感谢楼主!
支持(1)  反对(8)  回复

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务