【发布时间】:2016-05-10 02:02:12
【问题描述】:
当我尝试从我的私有存储库安装依赖项时,我收到以下错误:
> /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。
我不知道错误在哪里...感谢您的帮助!
【问题讨论】:
-
请确认您是否创建了 github auth token 并配置了 composer 以使用。
-
@AlexBlex 你能开发吗?我是菜鸟...
标签: php git github composer-php phpstorm