首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >台风环境安装不起作用

台风环境安装不起作用
EN

Stack Overflow用户
提问于 2016-05-17 11:49:21
回答 1查看 763关注 0票数 3

我正在尝试安装一些环境打字机,但它不再在我的机器上工作。我最近升级了节点,所以不确定这是否导致了它。它似乎不再寻找dt的位置了。

这是我得到的错误:

代码语言:javascript
复制
~/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>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-05-17 12:07:36

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

--ambient已改为--global

下面的评论中更新

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

代码语言:javascript
复制
typings install dt~moment-timezone --global
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37275306

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档