Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 288
sathishkumar Avatar asked May 24 '16 09:05

sathishkumar


2 Answers

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)

like image 119
raphaëλ Avatar answered Oct 22 '22 15:10

raphaëλ


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

like image 35
randominstanceOfLivingThing Avatar answered Oct 22 '22 17:10

randominstanceOfLivingThing