Cordova插件来自私人GitHub仓库 [英] Cordova plugin from private GitHub repository
问题描述
从私人GitHub存储库安装Cordova插件的首选方式是什么?
What is the preferred way to install a Cordova plugin from a private GitHub repository?
我已经从提供git帐户访问权限的供应商处购买了一个专用插件他们的私人git存储库。通常我会从cordova cli安装插件:
I have purchased a private plugin from a provider who granted my git account access to their private git repository. Normally I install plugins from the cordova cli with:
cordova plugin add https://github.com/somePrivateRepo/purchasedPlugin.git
但是,这产生了以下错误:
But this yielded the following error:
Error: Failed to fetch plugin https://github.com/somePrivateRepo/purchasedPlugin.git via git.
Either there is a connection problems, or plugin spec is incorrect:
Error: C:\Program Files\Git\cmd\git.exe: Command failed with exit code 1
28 Error output:
Cloning into 'C:\Users\xxxx\AppData\Local\Temp\git\1459346362064'...
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com': Invalid argument
我知道URL很好,因为GitHub桌面能够克隆存储库。
I know the URL is good as the GitHub desktop was able to clone the repository.
向我出售该插件的软件提供商告诉我这是我和GitHub之间的问题。
The software provider who sold me the plugin told me this was a problem between me and GitHub.
- 我应该可以从Cordova plugin add command安装插件吗?
- 有没有更好的解决方案,我没有想到?
- 是否应该从GitHub桌面GUI克隆,然后将这些文件复制并粘贴到我的项目中?
- 这是GitHub问题吗? >
- 这是科尔多瓦问题吗?
- 这是私人插件卖家的问题吗?
- Should I be able to install the plugin from the Cordova plugin add command?
- Is there a better solution that I have not thought of?
- Should I just clone from the GitHub desktop GUI then copy and paste the files into my project?
- Is this a GitHub problem?
- Is this a Cordova problem?
- Is this a problem for the seller of the private plugin?
感觉我错过了一个关键信息来完成这项工作。
Feels like I am missing a key piece of information to make this work.
推荐答案
我发现我可以从GitHub桌面克隆的路径进行安装。我使用了下面的命令:
I found I could install from the path where the GitHub desktop cloned. I used the following command:
cordova plugin add /path/to/directory
这篇关于Cordova插件来自私人GitHub仓库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!