无法从 github 检索 cordova 分叉插件

can't retrieve cordova forked plugins from github

我不知道这里发生了什么。 cordova plugin add 正在开发计算机上为项目工作,但不在生产计算机上工作。失败的插件是分叉插件...但我可以说这应该不是问题...但它确实是。

开发计算机:

  ionic/cli-utils: 1.19.1
  ionic (ionic CLI): 3.19.1
  ionic frame: ionic1 1.0.0
  cordova (cli): 8.0.0
  gulp cli: v 3.9.1
  gulp local: 3.9.1
  node: 6.9.1
  npm: 5.6.0

生产计算机:

  Ionic App Lib Version: 0.7.0
  Ionic CLI Version: 1.7.14
  Ionic Version: 1.3.4
  Cordova CLI: 8.0.0
  Cordova-Android: 7.1.1
  Gulp version:  CLI version 3.9.1
  Gulp local:   Local version 3.9.1
  Node Version: v6.10.3

在 Dev 计算机上,我可以将分支 github 插件添加到我的项目中,但我不能在我的 Prod 计算机上。在产品上我得到错误:

c:\myapp>cordova plugin add https://github.com/amritk/cordova-plugin-facebook4 --variable APP_ID="851844754851253" --variable APP_NAME="Whipster"
(node:3988) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Failed to fetch plugin https://github.com/amritk/cordova-plugin-facebook4 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
npm ERR! Error while executing:
npm ERR! C:\Program Files (x86)\Git\cmd\git.EXE ls-remote -h -t https://github.com/amritk/cordova-plugin-facebook4.git
npm ERR!
npm ERR! fatal: unable to access 'https://github.com/amritk/cordova-plugin-facebook4.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\RPO\AppData\Roaming\npm-cache\_logs18-082T21_38_50_110Z-debug.log

它也发生在另外两个分叉插件上。

一切正常,直到我将 Prod 机器从 cordova@7.0.1 升级到 cordova@8.0.0。我认为产品盒上的 ionic v1 安装使用的是 git v1.90.0.windows.1,我强制将其升级到 git 2.18.0.windows.1。

现在 git 又可以工作了。