gpt4 book ai didi

php - 需要身份验证 (packagist.org) Laravel 安装

转载 作者:可可西里 更新时间:2023-11-01 13:42:30 24 4
gpt4 key购买 nike

我正在使用 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 diagnostic,我会得到以下输出:

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 config --global repo.packagist composer https://packagist.org 然后重试。这应该可以防止它使用 http 协议(protocol)并强制使用 https,这可能会在您遇到错误的代理时修复它。

关于php - 需要身份验证 (packagist.org) Laravel 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39786363/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com