2016-05-17 37 views
3

我想安装一些环境类型,但它不再在我的机器上工作。我最近升级了节点,因此不确定这是否导致它。它似乎不再在dt位置寻找。类型环境安装不工作

这是错误我得到:

~/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> 
+0

我刚刚注意到''typings install'的帮助 - 环境不再受支持。到底是怎么回事? – cubabit

回答

2

答案就在这里:https://github.com/typings/typings/releases/tag/v1.0.0

TLDR:--ambient已更改为--global

更新不评论下面

你还需要指定存储库,例如:

typings install dt~moment-timezone --global 
+3

你似乎也需要明确地指定存储库(默认是npm): 'typings install dt〜moment-timezome --global' –

+0

@StewartFrancis坦克节省一天! – wmehanna

+0

太棒了!我们有一个错字“时刻表”,但像魅力一样工作。谢谢! –