Sono nuovo in TypeScript. Voglio installare una versione specifica del file di definizione angolare alla mia applicazione.Le tipizzazioni installano una versione specifica dei file di definizione
Utilizzando TSD
posso utilizzare il comando seguente
tsd install angular -v "1.4.0" -rso
Dal momento che, TSD
è deprecato, ho spostato a typings
per automatizzare l'installazione dei file di definizione.
La mia domanda è, usando typings
, posso installare una versione particolare del file di definizione angolare? In tal caso, qual è il comando in typings
?
Aggiornamento:
ho cercato qui di seguito i comandi, ma non ha funzionato.
typings install [email protected]
e
typings install [email protected] --ambient
messaggi l'errore assomigliano:
$ 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>
segnalato come un bug https://github.com/typings/typings/issues/442 –