码迷,mamicode.com
首页 > 其他好文 > 详细

composer安装yii2或者laravel报错

时间:2015-10-19 07:09:08      阅读:240      评论:0      收藏:0      [点我收藏+]

标签:

大概的信息就是提示让登陆github,然后就报错了

Could not fetch https://api.github.com/authorizations, enter your GitHub credentials to go over the API rate limit
The credentials will be swapped for an OAuth token stored in /Users/username/.composer/auth.json, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications
Username: username
Password:
An existing OAuth token for Composer is present and will be reused

解决方法

进入https://github.com/settings/applications创建一个一个新的token

技术分享

 

创建成功后会生成一个token,如下图

技术分享

然后执行

composer config –global github-oauth.github.com 上面的token

即可

转载:http://www.cnsecer.com/6994.html

composer安装yii2或者laravel报错

标签:

原文地址:http://www.cnblogs.com/wawahaha/p/4890833.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!