首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何使用类型安装jquery

如何使用类型安装jquery
EN

Stack Overflow用户
提问于 2016-05-24 17:45:03
回答 2查看 17.9K关注 0票数 17

使用:

代码语言:javascript
复制
typings install jquery --global

typings ERR! message Unable to find "jquery" ("npm") in the registry. Did you want to try searching another source? Also, if you want contribute these typings, please help us: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/npm/jquery/versions/latest responded with 404, expected it to equal 200

有人能帮帮我吗。

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-05-26 23:51:41

尝试:

代码语言:javascript
复制
typings install dt~jquery --global --save

编辑:

来自https://github.com/typings/typings#updating-from-0x-to-10

如果要从DefinitelyTyped安装,请明确(使用dt~ --

)。例如:键入install dt~angular-component-router --global --save

(另见Fidan Hakaj的评论)

票数 31
EN

Stack Overflow用户

发布于 2016-10-12 02:32:34

如果您将tyescript2.0与命令一起使用:

npm安装-g typescript@2.0

您可以使用以下命令安装jquery:

jquery安装--保存@types/

票数 8
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37409912

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档