使用 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的更多相关文章

  1. Visual Studio Git本地Repos和GitHub远程Repos互操作

    近期准备将一个项目开源到GitHub中,N-Sharding,.Net版本的分库分表数据访问框架.中间遇到了点小问题,整理了一下. 1. GitHub上Create New Repos 2. 代码Ch ...

  2. 微信小程序语音识别服务搭建全过程解析(https api开放,支持新接口mp3录音、老接口silk录音)

    silk v3(或新录音接口mp3)录音转olami语音识别和语义处理的api服务(ubuntu16.04服务器上实现) 重要的写在前面 重要事项一: 所有相关更新,我优先更新到我个人博客中,其它地方 ...

  3. angularJs|es6|reactJs|vueJs相关技术(请访问https://expendo.github.io/)

    技术博客地址:https://expendo.github.io/

  4. Update-Package : Unable to load the service index for source https://api.nuget.org/v3/index.json.

    由于更改了项目"属性"的"目标框架"(原来的框架是".NET Frameword4.5"改为了".NET Frameword4&q ...

  5. gem install 出现Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://api.rubygems.org

    在安装了rvm来管理多版本的ruby之后,想在不同环境下安装一些gems,结果gem install puma 之后,发现一次又一次失败. gem install 出现Errno::ECONNRESE ...

  6. 解决Nuget:https://api.nuget.org/v3/index.json 访问不了的问题

    最近在家中用使用VS编译项目时,Nuget包一直下载不了,直接在浏览器中访问https://api.nuget.org/v3/index.json ,浏览器也打不开网址.把https协议改成http协 ...

  7. 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. 却报如下错 ...

  8. 博客搬家 https://hanwang945.github.io/

    博客搬家 https://hanwang945.github.io/

  9. 【还是回来了】博客搬家--https://cangbean.github.io

    还是弄了个自己的地址:https://cangbean.github.io 想记录下,防止万一以后迁移不好弄 想练习markdown写作 折腾而已 以后不再博客园记录东西了,但是还是会回来看看的

随机推荐

  1. 如何正确的使用uwsgi

    简单的安装过程可以在这里找到,这里主要说一下如何配置uwsgi的服务,将uwsgi服务加入系统进程,你可以使用如下两种方式安装 apt-get apt-get install uwsgi 该命令会自动 ...

  2. 剖析并利用Visual Studio Code在Mac上编译、调试c#程序【转】

    0x00 前言 一周多以前的微软的Build大会上,微软发布了一个让很多人眼前一亮的工具,也是本文的主角——Visual Studio Code.很多使用Windows的朋友都很高兴,认为又多了一个很 ...

  3. Python使用纯真年代数据库qqwry.dat转换物理位置

    PS:网上直接找的,贴出来,方便以后随时用,感谢分享的人. #!/usr/bin/python #encoding: utf-8 import socket import codecs import ...

  4. 通过 IDE 向 Storm 集群远程提交 topology

    转载: http://weyo.me/pages/techs/storm-topology-remote-submission/ http://www.javaworld.com/article/20 ...

  5. rsync使用说明

    需求:把10.5.128.190数据同步到10.5.128.27 用客服端-服务器模式,需要从客户端发起 也就是从10.5.128.27发起 10.5.128.27 作为客户端 10.5.128.19 ...

  6. GNU工具链学习笔记

    GNU工具链学习笔记 1..so为动态链接库,.a为静态连接库.他们在Linux下按照ELF格式存储.ELF有四种文件类型.可重定位文件(Relocatable file,*.o,*.a),包含代码和 ...

  7. jquery 学习第一课之start

    1.$选取符 ( $ == jQuery ) (1) $("div").addClass("special");选取本页面中的所有<div>元素,然 ...

  8. 今天修改bug基本完成

    今天修改bug基本完成 在修改bug过程中配到几个郁闷的问题,印象最深的两个1.检查出生日期或日期的合法性,引用的日历控件不能完全保证取到值时操作,现在突然想到或许我该仔细研究日历控件接口,在返回错误 ...

  9. Missing Number ——LeetCode

    Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missin ...

  10. Validate Binary Search Tree——LeetCode

    Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as ...