sathishkumar
sathishkumar

Reputation: 1816

How to install jquery using typings

used:

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

Could anyone help me.

Upvotes: 17

Views: 18196

Answers (2)

If you are using typescript2.0 with the command:

npm install -g [email protected]

You can install jquery with the command:

npm install --save @types/jquery

Upvotes: 8

raphaëλ
raphaëλ

Reputation: 6523

Try:

typings install dt~jquery --global --save

EDIT:

from 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

(see also Fidan Hakaj's comment below)

Upvotes: 31

Related Questions