我正在使用 macOS Monterey 并尝试使用 Homebrew 安装 Php。我在几篇文章中读到,通过 Homebrew 安装是在 Mac 上进行此操作的最简单方法。我正在关注本教程:https://www.geeksforgeeks.org/how-to-install-php-on-macos/
成功安装Homebrew后,我使用命令brew tap username/php
这是我在终端上得到的:
==> Tapping saadmohammad/php Cloning into '/opt/homebrew/Library/Taps/saadmohammad/homebrew-php'... Username for 'https://github.com': saad931549 Password for 'https://[email protected]': remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. fatal: Authentication failed for 'https://github.com/saadmohammad/homebrew-php/' Error: Failure while executing; `git clone https://github.com/saadmohammad/homebrew-php /opt/homebrew/Library/Taps/saadmohammad/homebrew-php --origin=origin --template=` exited with 128.
你觉得我该如何度过这个难关?
我已成功设置 SSH 密钥并将其添加到我的 GitHub 帐户。您认为我可以使用它来验证我的帐户并继续安装吗?显然,我是这方面的初学者。
我查阅了有关如何使用 SSH 密钥进行身份验证的文章,他们讨论了公钥和私钥。我可以同时使用公钥和私钥。
因此,问题归结为能够使用也已添加到 GitHub 帐户的现有 SSH 密钥进行身份验证。我曾尝试这样做,但到目前为止还没有运气。而且我不愿意研究其中一篇文章,因为它可能需要太长时间。
有人可以指出我正确的方向吗?非常感谢..!
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号