Could not fetch https://api.github.com/repos/RobinHerbots/jquery
使用 composer 安装YII2时, 如题所示提示, 原因是由于yii安装中, 需要有一些相关的认证[或许说是composer的认证], 如有如下提示
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 /home/debm/.composer/auth.json, your password will not be stored
To revoke access to this token you can visit https://github.com/settings/applications
Username:
那么可以输入github的帐号与密码进行下一步的安装, 如果输入了帐号, 密码, 还继续让输入的话, 是因为 红字标出的文件不可写, 可以到
composer global require "fxp/composer-asset-plugin:1.0.0-beta4"
这一步执行之后, 所生成的文件夹里, 把 .composer 文件夹, 修改权限为 777 权限. 然后, 再重新执行
composer create-project yiisoft/yii2-app-basic basic 2.0.1
此命令. 如果仍然继续提示输入帐号, 密码的话, 大可 ctrl-d 退出, 然后重新执行 composer create-project yiisoft/yii2-app-basic basic 2.0.1 这一命令.
可能是由于缓存或是其他原因导致, 最后就可以看到执行成功的界面了
debm@debm:/var/www/local.yii2.eg$ sudo composer create-project yiisoft/yii2-app-basic basic 2.0.
Installing yiisoft/yii2-app-basic (2.0.)
- Installing yiisoft/yii2-app-basic (2.0.)
Loading from cache Created project in basic
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing yiisoft/yii2-composer (2.0.)
Downloading: % - Installing ezyang/htmlpurifier (v4.6.0)
Downloading: % - Installing swiftmailer/swiftmailer (v5.3.1)
Downloading: % - Installing bower-asset/jquery (2.1.)
Downloading: % - Installing bower-asset/yii2-pjax (v2.0.2)
Downloading: % - Installing bower-asset/punycode (v1.3.2)
Downloading: % - Installing bower-asset/jquery.inputmask (3.1.)
Downloading: % - Installing cebe/markdown (1.0.)
Downloading: % - Installing yiisoft/yii2 (2.0.)
Downloading: % - Installing yiisoft/yii2-swiftmailer (2.0.)
Downloading: % - Installing yiisoft/yii2-codeception (2.0.)
Downloading: % - Installing bower-asset/bootstrap (v3.3.1)
Downloading: % - Installing yiisoft/yii2-bootstrap (2.0.)
Downloading: % - Installing yiisoft/yii2-debug (2.0.)
Downloading: % - Installing bower-asset/typeahead.js (v0.10.5)
Downloading: % - Installing phpspec/php-diff (v1.0.2)
Downloading: % - Installing yiisoft/yii2-gii (2.0.)
Downloading: % - Installing fzaninotto/faker (v1.4.0)
Downloading: % - Installing yiisoft/yii2-faker (2.0.)
Downloading: % Writing lock file
Generating autoload files
chmod('runtime', )...done.
chmod('web/assets', )...done.
chmod('yii', )...done.
Could not fetch https://api.github.com/repos/RobinHerbots/jquery的更多相关文章
- Visual Studio Git本地Repos和GitHub远程Repos互操作
近期准备将一个项目开源到GitHub中,N-Sharding,.Net版本的分库分表数据访问框架.中间遇到了点小问题,整理了一下. 1. GitHub上Create New Repos 2. 代码Ch ...
- 微信小程序语音识别服务搭建全过程解析(https api开放,支持新接口mp3录音、老接口silk录音)
silk v3(或新录音接口mp3)录音转olami语音识别和语义处理的api服务(ubuntu16.04服务器上实现) 重要的写在前面 重要事项一: 所有相关更新,我优先更新到我个人博客中,其它地方 ...
- angularJs|es6|reactJs|vueJs相关技术(请访问https://expendo.github.io/)
技术博客地址:https://expendo.github.io/
- Update-Package : Unable to load the service index for source https://api.nuget.org/v3/index.json.
由于更改了项目"属性"的"目标框架"(原来的框架是".NET Frameword4.5"改为了".NET Frameword4&q ...
- gem install 出现Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://api.rubygems.org
在安装了rvm来管理多版本的ruby之后,想在不同环境下安装一些gems,结果gem install puma 之后,发现一次又一次失败. gem install 出现Errno::ECONNRESE ...
- 解决Nuget:https://api.nuget.org/v3/index.json 访问不了的问题
最近在家中用使用VS编译项目时,Nuget包一直下载不了,直接在浏览器中访问https://api.nuget.org/v3/index.json ,浏览器也打不开网址.把https协议改成http协 ...
- Visual Studio 2015 NuGet Update-Package 失败/报错:Update-Package : Unable to load the service index for source https://api.nuget.org/v3/index.json.
起因 为了用VS2015 community中的NuGet获取Quartz,在[工具]-[NuGet包管理器]-[程序包管理器控制台]中执行 Install-Package Quartz. 却报如下错 ...
- 博客搬家 https://hanwang945.github.io/
博客搬家 https://hanwang945.github.io/
- 【还是回来了】博客搬家--https://cangbean.github.io
还是弄了个自己的地址:https://cangbean.github.io 想记录下,防止万一以后迁移不好弄 想练习markdown写作 折腾而已 以后不再博客园记录东西了,但是还是会回来看看的
随机推荐
- php基础知识【函数】(7)url和ob函数
一.URl函数 1.urlencode -- 编码 URL 字符串 2.urldecode -- 解码已编码的 URL 字符串 3.rawurlencode -- 按照 RFC 1738 对 URL ...
- 转:PHP开发框架流行度排名:Laravel居首
原文来自于:http://www.sitepoint.com/best-php-frameworks-2014/ Update: If you’d like to take part in the n ...
- gulp配置browserify多入口
需要 var es = require('event-stream'); gulp.task('browserify', function(){ var files = [ { fpath: './j ...
- 转:misc_register、 register_chrdev 的区别总结
杂项设备(misc device) 杂项设备也是在嵌入式系统中用得比较多的一种设备驱动.在 Linux 内核的include/linux目录下有Miscdevice.h文件,要把自己定义的misc d ...
- win7计划任务执行BAT文件问题
今天下午做了一个调用java 可执行jar的程序,想通过win7的计划任务来调用 批处理命令: java -jar BIDropSyc.jar 或者 javaw -jar BIDropSyc.j ...
- VSTO:无法安装此应用程序,因为已安装具有相同标识的应用程序
原文:VSTO:无法安装此应用程序,因为已安装具有相同标识的应用程序 在开发环境(Win7+VS2010+Outlook 2010)上做一个Outlook AddIn,运行Outlook时报如下错误: ...
- 【HDOJ】2319 Card Trick
水题,STL双端队列. /* 2319 */ #include <iostream> #include <cstdio> #include <cstring> #i ...
- 【HDOJ】2428 Stars
先排序后二分. #include <iostream> #include <cstdio> #include <cstring> #include <algo ...
- 搜索与DP:SLIKAR
Problem: SLIKAR[题目描述]Josip 是个奇怪的画家,他想画一幅由 N*N 个点组成的图, N 是一个 2 的乘方 数(1, 2, 4, 8, 16 等.).每个点要么是黑色的,要么是 ...
- FZYZ-2071 A Simple Math Problem IX
P2071 -- A Simple Math Problem IX 时间限制:1000MS 内存限制:262144KB 状态:Accepted 标签: 数学问题-博弈论 ...