Composer 安装 Laravel 要求对 Github 进行身份验证 [英] Composer install Laravel asks for authentication for Github

查看:66
本文介绍了Composer 安装 Laravel 要求对 Github 进行身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试从 composer.lock 文件安装 Laravel 项目时,Composer 提示我进行身份验证.

When I try to install a Laravel project from a composer.lock file, Composer prompts me for authentication.

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
  - Installing laravel/framework (v4.1.21)
    Authentication required (api.github.com):
      Username:

$ composer --version
Composer version 7343198817f365b1676ced0f353808f0e408ff9a 2014-02-07 09:59:35

$ php -i | grep ssl
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, tls
openssl

我已经安装了 OpenSSL.在 Ubuntu 13.10 上使用 PHP 5.5.3.

I have OpenSSL installed. Using PHP 5.5.3 on Ubuntu 13.10.

知道如何解决这个问题吗?试图给它我的 Github 凭据,但没有用.

Any idea how to get around this? Tried to give it my Github credentials, but it didn't work.

推荐答案

在 Composer 中发生了很多事情.

Happens a lot with Composer.

这是一个临时的 composer/packagist 问题:它无法下载所需的文件(通常是由于超时),当文件访问被拒绝"时,它会询问 VCS 密码.

This is a temporary composer/packagist problem: it's not being able to download required files (usually due to timeout) and when file access is 'denied' it asks for the VCS password.

这篇关于Composer 安装 Laravel 要求对 Github 进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆