【问题标题】:Trying to upgrade typescript but getting "The authenticity of host 'github.com (192.30.253.113)' can't be established"尝试升级打字稿但得到“主机'github.com(192.30.253.113)'的真实性无法建立”
【发布时间】:2020-01-05 03:09:03
【问题描述】:

我正在尝试使用 npm 升级我的打字稿版本。我尝试运行此命令

localhost:Pastebin davea$ npm install typescript/2.8.4 --save-dev
The authenticity of host 'github.com (192.30.253.113)' can't be established.0d71
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
⸨░░░░░░░░░░░░░░░░░░⸩ ⠧ rollbackFailedOptional: verb npm-session b2dfb7a6e65c0d71

但是得到你在上面看到的错误。我不清楚为什么无法确定 github.com 的真实性。据我所知,该网站已启动。不知道如何解决这个问题。

【问题讨论】:

  • 您可能根本没有或拥有过时的 CA 包。
  • 修复命令 npm install typescript@2.8.4 --save-dev 后,此方法有效,注意 @ 而不是 /。这也是我不得不说的很旧的版本

标签: typescript github npm ssh npm-install


【解决方案1】:

我正在安装react-native-community/masked-view,但一开始我错过了@ 范围,它给了我这个错误。

【讨论】:

    猜你喜欢
    • 2018-05-22
    • 2022-08-12
    • 2013-09-13
    • 2011-04-09
    • 2021-06-18
    • 2016-08-09
    • 2020-06-03
    • 2021-04-19
    • 1970-01-01
    相关资源
    最近更新 更多