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 这一命令.

可能是由于缓存或是其他原因导致, 最后就可以看到执行成功的界面了

[email protected]:/var/www/local.yii2.eg$ sudo composer create-project yiisoft/yii2-app-basic basic 2.0.1
Installing yiisoft/yii2-app-basic (2.0.1)
  - Installing yiisoft/yii2-app-basic (2.0.1)
    Loading from cache

Created project in basic
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing yiisoft/yii2-composer (2.0.1)
    Downloading: 100%         

  - Installing ezyang/htmlpurifier (v4.6.0)
    Downloading: 100%         

  - Installing swiftmailer/swiftmailer (v5.3.1)
    Downloading: 100%         

  - Installing bower-asset/jquery (2.1.3)
    Downloading: 100%         

  - Installing bower-asset/yii2-pjax (v2.0.2)
    Downloading: 100%         

  - Installing bower-asset/punycode (v1.3.2)
    Downloading: 100%         

  - Installing bower-asset/jquery.inputmask (3.1.49)
    Downloading: 100%         

  - Installing cebe/markdown (1.0.1)
    Downloading: 100%         

  - Installing yiisoft/yii2 (2.0.1)
    Downloading: 100%         

  - Installing yiisoft/yii2-swiftmailer (2.0.1)
    Downloading: 100%         

  - Installing yiisoft/yii2-codeception (2.0.1)
    Downloading: 100%         

  - Installing bower-asset/bootstrap (v3.3.1)
    Downloading: 100%         

  - Installing yiisoft/yii2-bootstrap (2.0.1)
    Downloading: 100%         

  - Installing yiisoft/yii2-debug (2.0.1)
    Downloading: 100%         

  - Installing bower-asset/typeahead.js (v0.10.5)
    Downloading: 100%         

  - Installing phpspec/php-diff (v1.0.2)
    Downloading: 100%         

  - Installing yiisoft/yii2-gii (2.0.1)
    Downloading: 100%         

  - Installing fzaninotto/faker (v1.4.0)
    Downloading: 100%         

  - Installing yiisoft/yii2-faker (2.0.1)
    Downloading: 100%         

Writing lock file
Generating autoload files
chmod(‘runtime‘, 0777)...done.
chmod(‘web/assets‘, 0777)...done.
chmod(‘yii‘, 0755)...done.
 
时间: 2024-12-10 14:19:57

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. 代码Check In到本地Git Repos 3. Push到GitHub远程Repos 一.GitHub上Create New Repos:N-Sharding 2. 代码Check In到本地Git Repos  3. Push到GitHub远程Repos 推送提示一下错误: 将分支推送到远程存储库时遇

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

最近在家中用使用VS编译项目时,Nuget包一直下载不了,直接在浏览器中访问https://api.nuget.org/v3/index.json ,浏览器也打不开网址.把https协议改成http协议,浏览器可以打开了,然后就在VS设置Nuget包管理器中添加了http的程序包源,添加后再次编译,还是下载不了.后来发现http://api.nuget.org/v3/index.json返回结果中,resoure的地址还是https协议,所以下载时还是请求https的. 如果能把Https协议自

con't login: connect to api.github.com:443[api.github.com/192.30.253.116, api.github.com/192.30.253.117] failed:connect timed out

Win7 pycharm github con't login: connect to api.github.com:443[api.github.com/192.30.253.116, api.github.com/192.30.253.117] failed:connect timed out ping不通192.30.253.117 跟踪一下,发现 跳转到10.段,结果丢失. tracert 192.30.153.117 打印一下路由 route print 发现是由于 静态路由 的原因

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. 却报如下错误: Update-Package : Unable to load the service index for source https://api.nuget.org/v3/index.json. 复制该网址到浏览器中,确实无法打开. 解决方法 经网上搜集资料,得知替换source即可.将原Nu

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

由于更改了项目"属性"的"目标框架"(原来的框架是".NET Frameword4.5"改为了".NET Frameword4") 提示错误 一些 NuGet 程序包是使用不同于当前目标框架的目标框架安装的, 可能需要重新安装.有关详细信息, 请访问 http://docs.nuget.org/docs/workflows/reinstalling-packages. 受到影响的程序包.... 我的是VS 2015 社区版..

nuget.org 无法加载源 https://api.nuget.org/v3/index.json 的服务索引

今天添加新项目想添加几个工具包,打开NuGet就这样了  发生错误如下: [nuget.org] 无法加载源 https://api.nuget.org/v3/index.json 的服务索引. 响应状态代码不指示成功: 503 (Service Unavailable). 解决办法:添加一个新的源,Nuget.org取消勾选 在新源中添加地址: https://www.nuget.org/api/v2/curated-feeds/microsoftdotnet 确定就可以了

https://gist.github.com/nathanielove/40c1dcac777e64ceeb63d8296d263d6d

https://gist.github.com/nathanielove/40c1dcac777e64ceeb63d8296d263d6d

https://api.highcharts.com/gantt/

<a href="https://api.highcharts.com/gantt/">https://api.highcharts.com/gantt/</a> https://api.highcharts.com/gantt/ 原文地址:https://www.cnblogs.com/hill-foryou/p/10451199.html

微信小程序获取二维码(直接上代码)https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token=ACCESS_TOKEN

应为是直接返回二进制数据所有与其他接口些许差别,希望能帮助现在的你! 谢谢!!!    /** * 37.微信二维码生成 */ public String getWeiXinCourseMap() { String courseId = StringUtils.defaultString(getPara("courseId")); String codeUrl = ""; String path = "你的二维码指向路径(可以拼接参数)"; tr