How to install jquery using typings

后端 未结 2 1419
南方客
南方客 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)

提交回复
热议问题