【发布时间】:2017-02-08 17:27:39
【问题描述】:
我正在使用 Ubuntu 16.04 并尝试安装 Laravel(任何版本)。实际上我从 GitHub 克隆了 Laravel 项目 (https://github.com/laravel/laravel) 克隆后我运行如下命令:
root:/var/www/html/laravel$ composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Authentication required (packagist.org):
Username:
这是我面临的问题,我不知道我必须提供什么用户名,以及为什么它要求身份验证。如果我运行composer diagnose,我会得到以下输出:
composer diagnose
Checking composer.json: OK
Checking platform settings: OK
Checking git settings: OK
Checking http connectivity to packagist: Authentication required (packagist.org):
Username:
任何建议或谁能告诉我在这里缺少什么?
【问题讨论】:
-
您是否在使用某种代理?您是否尝试过 composer install -vvv 以获得更多调试信息?
-
感谢您的回复,我运行了命令 composer install -vvv 但在中间我得到了下面显示的错误
[Composer\Downloader\TransportException] Invalid credentials for 'http://packagist.org/p/symfony/polyfill-mbstring%24c9c4d394bcfc0f197c6dd5c0524fa35a32f2dd07a0c9d208d04811248115b0 e6.json', aborting.不知道现在该做什么...任何其他建议
标签: php laravel-5 composer-php