typescript – 如何使用打字安装jquery

前端之家收集整理的这篇文章主要介绍了typescript – 如何使用打字安装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-to-10

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

(另见Fidan Hakaj的评论)

原文链接:https://www.f2er.com/jquery/181681.html

猜你在找的jQuery相关文章