Composer 安装\更新身份验证错误
Composer install \ update authentication errors
当我尝试从我的私有存储库安装依赖项时出现以下错误:
> /opt/lampp/bin/php /home/arthur/Sites/audio-video-caption.com/composer.phar install
Loading composer repositories with package information
Failed to clone the git@github.com:Djevil83/UserBundle.git repository, try running in interactive mode so that you can enter your GitHub credentials
[RuntimeException]
Failed to execute git clone --mirror 'git@github.com:Djevil83/UserBundle.git' '/home/arthur/.cache/composer/vcs/git-github.com-Djevil83-UserBundle.git/'
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
Process finished with exit code 1 at 15:40:11.
Execution time: 1 874 ms.
`
这是我的 composer.json
:
"repositories": [
{
"type": "vcs",
"url": "git@github.com:Djevil83/UserBundle.git"
},
]
我正在使用 Debian 8 和 Xampp 以及 php 7。
我不知道错误在哪里...谢谢你的帮助!
没有回购协议 UserBundle
,请参阅 https://github.com/Djevil83?tab=repositories。也许 UtilitiesBundle
是正确的。
所以尝试将行更改为
"url": "git@github.com:Djevil83/UtilitiesBundle.git
在你的composer.json
.
首先,确认您设置了对存储库的访问权限:https://help.github.com/articles/adding-collaborators-to-a-personal-repository/ 以便您可以使用您的私钥克隆它。命令:
git clone git@github.com:Djevil83/UserBundle.git
应该创建一个新目录 UserBundle
而无需询问密码。
然后阅读https://getcomposer.org/doc/articles/troubleshooting.md#api-rate-limit-and-oauth-tokens如何设置 OAuth 令牌以增加速率限制。
当我尝试从我的私有存储库安装依赖项时出现以下错误:
> /opt/lampp/bin/php /home/arthur/Sites/audio-video-caption.com/composer.phar install
Loading composer repositories with package information
Failed to clone the git@github.com:Djevil83/UserBundle.git repository, try running in interactive mode so that you can enter your GitHub credentials
[RuntimeException]
Failed to execute git clone --mirror 'git@github.com:Djevil83/UserBundle.git' '/home/arthur/.cache/composer/vcs/git-github.com-Djevil83-UserBundle.git/'
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
Process finished with exit code 1 at 15:40:11.
Execution time: 1 874 ms.
`
这是我的 composer.json
:
"repositories": [
{
"type": "vcs",
"url": "git@github.com:Djevil83/UserBundle.git"
},
]
我正在使用 Debian 8 和 Xampp 以及 php 7。
我不知道错误在哪里...谢谢你的帮助!
没有回购协议 UserBundle
,请参阅 https://github.com/Djevil83?tab=repositories。也许 UtilitiesBundle
是正确的。
所以尝试将行更改为
"url": "git@github.com:Djevil83/UtilitiesBundle.git
在你的composer.json
.
首先,确认您设置了对存储库的访问权限:https://help.github.com/articles/adding-collaborators-to-a-personal-repository/ 以便您可以使用您的私钥克隆它。命令:
git clone git@github.com:Djevil83/UserBundle.git
应该创建一个新目录 UserBundle
而无需询问密码。
然后阅读https://getcomposer.org/doc/articles/troubleshooting.md#api-rate-limit-and-oauth-tokens如何设置 OAuth 令牌以增加速率限制。