/ / L'installazione ambientale delle tipizzazioni non funziona - javascript, node.js, typescript, tsd

Installazione ambientale di tipizzazione non funzionante - javascript, node.js, typescript, tsd

Sto cercando di installare alcune tipizzazioni ambientali, ma non funziona più sulla mia macchina. Recentemente ho aggiornato il nodo, quindi non sono sicuro che ciò l'abbia causato. Sembra che non stia più cercando nella posizione di dt.

Questo è l'errore che ottengo:

~/w/r/c/src (master ⚡☡) typings search moment-timezone
Viewing 1 of 1

NAME            SOURCE HOMEPAGE                      DESCRIPTION VERSIONS UPDATED
moment-timezone dt     http://momentjs.com/timezone/             1        2016-03-29T22:03:48.000Z

~/w/r/c/src (master ⚡☡) typings i moment-timezone --ambient
typings ERR! message Unable to find "moment-timezone" ("npm") in the registry. Did you want to try searching another source? Also, if you want contribute these typings, please help us: https://github.com/typings/registry
typings ERR! caused by https://api.typings.org/entries/npm/moment-timezone/versions/latest responded with 404, expected it to equal 200

typings ERR! cwd /Users/pete/work/ruuby/calendar-sync/src
typings ERR! system Darwin 15.3.0
typings ERR! command "/usr/local/Cellar/node/6.1.0/bin/node" "/usr/local/bin/typings" "i" "moment-timezone" "--ambient"
typings ERR! node -v v6.1.0
typings ERR! typings -v 1.0.3

typings ERR! If you need help, you may report this error at:
typings ERR!   <https://github.com/typings/typings/issues>

risposte:

2 per risposta № 1

La risposta è qui: https://github.com/typings/typings/releases/tag/v1.0.0

TLDR: --ambient è cambiato in --global

AGGIORNAMENTO Dal commento qui sotto

È necessario specificare anche il repository, ad es .:

typings install dt~moment-timezone --global