如何使用typings安装jquery [英] How to install jquery using typings

查看:26
本文介绍了如何使用typings安装jquery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用:

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

谁能帮帮我.

推荐答案

尝试:

typings install dt~jquery --global --save

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

如果您想从绝对类型安装,请明确(使用 dt~ --global).例如:typings install dt~angular-component-router --global --save

If you want to install from DefinitelyTyped, be explicit (use dt~ --global). For example: typings install dt~angular-component-router --global --save

(另见下面 Fidan Hakaj 的评论)

(see also Fidan Hakaj's comment below)

这篇关于如何使用typings安装jquery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆