【发布时间】:2017-10-19 09:24:45
【问题描述】:
我想添加我的 cordova 插件,该插件位于私有 bitbucket 存储库中。因此,我想使用以下 SSH url:
myuser@bitbucket.org:myuser/cordova-plugin-xyz.git
如您所见,用户是 myuser。
如果我现在跑步
cordova plugin add git+ssh://myuser@bitbucket.org/myuser/cordova-plugin-xyz.git
我收到以下错误:
npm 错误!命令失败:git clone --template=/home/localuser/.npm/_git-remotes/_templates --mirror ssh://git@bitbucket.org/myuser/cordova-plugin-xyz.git /home/localuser/.npm/_git-remotes/ssh-git-bitbucket-org-myuser-cordova-plugin-xyz-git-160b6243 npm 错误!裸存储库中的 Klone '/home/localuser/.npm/_git-remotes/ssh-git-bitbucket-org-myuser-cordova-plugin-xyz-git-160b6243' ... npm 错误!存储库访问被拒绝。 npm 错误!致命:无法从远程存储库读取。
如您所见,cordova 尝试通过 url 获取插件
ssh://git@bitbucket.org/myuser/cordova-plugin-xyz.git
将git 设置为用户,这在我的情况下是错误的。
有没有办法改变用户cordova 使用的?这是一个错误吗?我可以在 bitbucket 中切换一些东西以便它接受 git 用户吗?
提前致谢。
【问题讨论】:
标签: git cordova plugins bitbucket