Composer安装Yii2需要github的token
安装yii2遇到这样的提示:
Could not fetch https://api.github.com/repos/jquery/sizzle/contents/bower.json?ref=917b312f1d0777d3cccf6ceace2621bb9e8009b2, please create a GitHub OAuth token to go over the API rate limit
Head to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+JIAN-PC+2017-05-11+1400
to retrieve a token. It will be stored in “C:/Users/Administrator/AppData/Roaming/Composer/auth.json” for future use by Composer.
这时候只要输入一个token就可以了,这个token在哪里创建或者获取呢?在这https://github.com/settings/tokens/,如果没有账号先注册一个github账号。这是github为了控制下载速度,避免资源被滥用采取的措施。
第一步:创建新的token

github创建token
声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。
copyright © 2008-2019 亿联网络 版权所有 备案号:粤ICP备14031511号-2