Ich bin neu in TypeScript. Ich möchte eine bestimmte Version der eckigen Definitionsdatei in meiner Anwendung installieren.Types installieren bestimmte Version von Definitionsdateien
Mit TSD
kann ich den folgenden Befehl
tsd install angular -v "1.4.0" -rso
Da TSD
veraltet ist, ich zu typings
verschoben haben die Definitionsdateien Installation zu automatisieren.
Meine Frage ist, mit typings
, kann ich eine bestimmte Version der eckigen Definitionsdatei installieren? Wenn ja, was ist der Befehl in typings
?
Update:
ich unten Befehle versucht, aber sie funktionierte nicht.
typings install [email protected]
und
typings install [email protected] --ambient
Die Fehlermeldungen wie folgt aussehen:
$ 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>
Berichtet als Bug https://github.com/typings/typings/issues/442 –