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写作 折腾而已 以后不再博客园记录东西了,但是还是会回来看看的
随机推荐
- dedecms模版制作活动的折叠菜单
需要做成这种样式 url请求为这样: http://m03.com/plus/list.php?tid=19 这些菜单项都有对应的tid项,页面刷新后,应该将所有的菜单折叠起来,对于tid=19的菜单 ...
- JDK和JRE的区别?
很多朋友可能跟我一样,已经使用JAVA开发很久了,可是对JDK,JRE,JVM这三者的联系与区别,一直都是模模糊糊的. 今天特写此文,来整理下三者的关系. JDK : Java Development ...
- MySQL中删除重复数据只保留一条
用SQL语句,删除掉重复项只保留一条 在几千条记录里,存在着些相同的记录,如何能用SQL语句,删除掉重复的呢 1.查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断 SELECT ...
- Connect mysql on Linux from Windows
ON LINUX: 1 sudo apt-get install mysql-server 2 sudo apt-get install python-dev 3 sudo apt-get insta ...
- 在zend studio 9.* 中使用phpunit进行单元测试
单元测试在用PHP开发大型项目时必备的减少测试难度和提高测试效率的利器,而PHPUnit是php做单元测试时使用范围最广的一个.如果在window系统中开发,就要调用控制台来运行phpunit,非常的 ...
- MFC之MessageBox用法
一 函数原型及参数 function MessageBox(hWnd: HWND; Text, Caption: PChar; Type: Word): Integer; hWnd:对话框父窗口 ...
- 创建mysql数据库
mysql> create database wzhpush3 default charset utf8 collate utf8_general_ci;
- google yeoman
Yeoman是Google的团队和外部贡献者团队合作开发的,他的目标是通过Grunt(一个用于开发任务自动化的命令行工具)和Bower(一个HTML.CSS.Javascript和图片等前端资源的包管 ...
- java 和javaw 的区别——<转>
java 和javaw 的区别 javaw.exe用法和java.exe 相同 javaw的程序不在java console 上面显示任何东西,如果在开发程序,就用java,这样可以看到错误提示, 如 ...
- Hibernate中的事务隔离
在我们的项目中,老发现程序报告sesssion is closed或者因数据已经被其他事务修改而导致当前事务无法提交,由于系统的运行用户最多也就几十个人,所以考虑使用严格的事务隔离来防止这种类型的问题 ...