【问题标题】:Getting an "UNABLE_TO_GET_ISSUER_CERT_LOCALLY" while using "tsd" command使用“tsd”命令时获取“UNABLE_TO_GET_ISSUER_CERT_LOCALLY”
【发布时间】:2017-12-06 22:32:17
【问题描述】:

我正在尝试使用以下 tsd 命令在我的项目中安装角度类型定义文件。

tsd install angular --resolve --save

TypeScript 版本: 2.3.4

但是,当我尝试这样做时,出现以下错误。

[ERR!] node : v7.8.0
[ERR!] tsd  : 0.6.5
[ERR!] Error: unable to get local issuer certificate
[ERR!] CODE : UNABLE_TO_GET_ISSUER_CERT_LOCALLY
[ERR!] unable to get local issuer certificate

我尝试使用npmstrict-ssl 设置为false,甚至尝试执行npm cache clean 命令,但没有运气。

有人可以帮忙吗?

【问题讨论】:

    标签: javascript angularjs typescript typescript-typings


    【解决方案1】:

    请不要再使用tsd。该项目已弃用且未维护。只需使用npm install @types/angular

    更多

    https://github.com/DefinitelyTyped/tsd/issues/149

    【讨论】:

    • 谢谢!打字稿先生! :-)
    猜你喜欢
    • 2017-06-21
    • 1970-01-01
    • 2023-02-06
    • 2011-11-26
    • 1970-01-01
    • 2015-12-03
    • 1970-01-01
    • 2020-03-22
    • 2011-05-21
    相关资源
    最近更新 更多