2017-05-07 24 views
0

我正在使用SSH代理转发我的Vagrant框。它看起来像这样设置正确,因为我可以成功地在我的私人资料库执行git的克隆:作曲者未使用通过SSH代理转发的密钥集

$ git clone [email protected]:myorganisation/myrepo.git

Cloning into 'myrepo'...

这个仓库还设有我composer.json:

{ 
    "type": "vcs", 
    "url": "[email protected]:myorganisation/myrepo.git" 
}, 

但是,当我在同一用户下运行composer update时,出现一个错误,指示我未经身份验证:

The "https://api.github.com/repos/com:myorganisation/myrepo" file could not be downloaded (HTTP/1.1 404 Not Found)

我该如何指导Composer使用我的转发密钥?

回答

0

我整理这通过添加no-api选项:

{ 
    "type": "vcs", 
    "no-api": true, 
    "url": "[email protected]:myorganisation/myrepo.git" 
}