How to install jquery using typings

后端 未结 2 1418
南方客
南方客 2021-02-04 04:29

used:

typings install jquery --global

typings ERR! message Unable to find \"jquery\" (\"npm\") in the registry. Did you want to try searching another source? Al         


        
相关标签:
2条回答
  • 2021-02-04 04:49

    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)

    0 讨论(0)
  • 2021-02-04 05:08

    If you are using typescript2.0 with the command:

    npm install -g typescript@2.0

    You can install jquery with the command:

    npm install --save @types/jquery

    0 讨论(0)
提交回复
热议问题