从私有GitHub存储库安装Cordova插件的首选方法是什么?
我从一个提供商处购买了一个私有插件,该提供商授予我的git帐户访问其私有git存储库的权限.通常我从cordova cli安装插件:
cordova plugin add https://github.com/somePrivateRepo/purchasedPlugin.git
Run Code Online (Sandbox Code Playgroud)
但是这产生了以下错误:
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
Run Code Online (Sandbox Code Playgroud)
我知道URL很好,因为GitHub桌面能够克隆存储库.
卖给我这个插件的软件提供商告诉我这是我和GitHub之间的问题.
感觉像我错过了一个关键的信息来使这项工作.