Jestem nowym użytkownikiem TypeScript. Chcę zainstalować konkretną wersję pliku definicji kątowej do mojej aplikacji.Typy instalują określoną wersję plików definicji
Korzystanie TSD
mogę użyć następującego polecenia
tsd install angular -v "1.4.0" -rso
Ponieważ TSD
jest przestarzała, mam przesunięty typings
zautomatyzować instalację plików definicji.
Moje pytanie brzmi, korzystając z typings
, czy mogę zainstalować konkretną wersję pliku definicji kątowej? Jeśli tak, to jaka jest komenda w typings
?
Aktualizacja:
Próbowałem poniżej poleceń, ale nie działa.
typings install [email protected]
i
typings install [email protected] --ambient
komunikaty błędu wyglądać następująco:
$ typings install [email protected] --ambient
typings ERR! message Unable to find "angular" for "dt" in the registry. Did you want to install ambient typings with the ambient flag? If you can contribute these typings, please help us: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/dt/angular/versions/1.4.0/latest responded with 404, expected it to equal 200
typings ERR! cwd /Users/idolezalova/projects/wfm
typings ERR! system Darwin 15.4.0
typings ERR! command "/Users/idolezalova/.nvm/versions/node/v4.3.1/bin/node" "/Users/idolezalova/.nvm/versions/node/v4.3.1/bin/typings" "install" "[email protected]" "--ambient"
typings ERR! node -v v4.3.1
typings ERR! typings -v 0.7.12
typings ERR! If you need help, you may report this error at:
typings ERR! <https://github.com/typings/typings/issues>
Zgłoszone jako błąd https://github.com/typings/typings/issues/442 –