uks*_*ksz 3 typescript typescript-typings
在我做完之后,我遇到了为jquery安装打字的问题typings init:
MacBook:resources admin$ typings install jquery
Run Code Online (Sandbox Code Playgroud)
打字ERR!message无法在注册表中找到"jquery"("npm").您想尝试搜索其他来源吗?另外,如果你想贡献这些类型,请帮助我们:https: //github.com/typings/registry typings ERR!由https://api.typings.org/entries/npm/jquery/versions/latest引起的 回复为404,预计等于200
打字ERR!cwd/Users/admin/resources typings ERR!系统达尔文15.4.0打字ERR!命令"/ usr/local/bin/node""/ usr/local/bin/typings""install""jquery"typings ERR!node -v v4.4.2 typings ERR!typings -v 1.0.4
打字ERR!如果您需要帮助,可以在以下位置报告此错误:typings ERR! https://github.com/typings/typings/issues
知道发生了什么事吗?
thi*_*ple 12
版本1.0之后的版本改变了它最初从DefinitelyTyped安装打字的方式.
如果你搜索jQuery
typings search jquery
Run Code Online (Sandbox Code Playgroud)
你会看到源是dt,意思是DefinitelyTyped.
要安装它,您应该使用:
typings install dt~jquery --global
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2521 次 |
| 最近记录: |