从私有 GitHub 存储库安装 Cordova 插件的首选方法是什么?
我从供应商处购买了一个私有插件,该供应商授予我的 git 帐户访问其私有 git 存储库的权限。通常我从 cordova cli 安装插件:
cordova plugin add https://github.com/somePrivateRepo/purchasedPlugin.git
但这产生了以下错误:
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 桌面能够克隆存储库。
卖给我这个插件的软件提供商告诉我这是我和 GitHub 之间的问题。
- 我应该能够通过 Cordova 插件添加命令安装该插件吗?
- 还有我没有想到的更好的解决方案吗?
- 我是否应该从 GitHub 桌面 GUI 克隆,然后将文件复制并粘贴到我的项目中?
- 这是 GitHub 的问题吗?
- 这是科尔多瓦问题吗?
- 这是私人插件卖家的问题吗?
感觉我错过了完成这项工作的关键信息。
我发现我可以从 GitHub 桌面克隆的路径安装。我使用了以下命令:
cordova plugin add /path/to/directory
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)