Javascript 打字不起作用

Javascript 打字不起作用,javascript,node.js,typescript,tsd,Javascript,Node.js,Typescript,Tsd,我正在尝试安装一些环境打字,但它不再在我的机器上工作。我最近升级了节点,所以不确定这是否导致了它。它似乎不再在dt位置寻找 这是我得到的错误: ~/w/r/c/src (master ⚡☡) typings search moment-timezone Viewing 1 of 1 NAME SOURCE HOMEPAGE DESCRIPTION VERSIONS UPDATED moment-timezone dt ht

我正在尝试安装一些环境打字,但它不再在我的机器上工作。我最近升级了节点,所以不确定这是否导致了它。它似乎不再在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>
~/w/r/c/src(主⚡☡) 键入搜索时刻时区
查看第1页,共1页
更新名称源主页说明版本
时刻时区http://momentjs.com/timezone/             1 2016-03-29T22:03:48.000Z
~/w/r/c/src(主⚡☡) 输入i时刻时区—环境
键入错误!消息在注册表中找不到“时刻时区”(“npm”)。是否尝试搜索其他来源?此外,如果您想输入这些内容,请帮助我们:https://github.com/typings/registry
打字错误!由以下原因引起https://api.typings.org/entries/npm/moment-timezone/versions/latest 回答为404,预计等于200
输入错误!cwd/Users/pete/work/ruuby/calendar sync/src
打字错误!达尔文系统15.3.0
键入错误!命令“/usr/local/cillar/node/6.1.0/bin/node”“/usr/local/bin/typings”“i”“时刻时区”“--环境”
键入错误!节点-v6.1.0
打字错误!打字-V1.0.3
打字错误!如果您需要帮助,可以在以下位置报告此错误:
打字错误!
答案如下:

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

根据下面的评论更新

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

typings install dt~moment-timezone --global

我刚从查看
typings install
--不再支持ambient的帮助中注意到。发生了什么事?似乎您也需要显式指定存储库(默认为npm):
typings install dt~矩timezome--global
@StewartFrancis tanks以节省时间!太好了!我们有一个拼写“矩timezome”但是很有魅力,谢谢!