键入环境安装不起作用
Typings ambient install not working
我正在尝试安装一些环境打字,但它在我的机器上已无法工作。我最近升级了节点,所以不确定是不是这导致了它。它似乎不再在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>
答案如下:https://github.com/typings/typings/releases/tag/v1.0.0
TLDR:--ambient
已更改为--global
更新来自下面的评论
您还需要指定存储库,例如:
typings install dt~moment-timezone --global
相关文章:
- electronic BrowserWindow的最小高度和宽度在hide()show()方法之后不起作用
- 监视函数从服务返回不起作用,但作用域函数起作用
- 幻灯片滚动javascript不起作用
- 简单的javascript在Shopify中不起作用
- Recaptcha在IE7和IE8中不起作用
- Ember Data DS.Model's set函数不起作用
- JsFiddle上的鼠标事件不起作用
- 我的AngularJS表达式没有'不起作用
- 点击按钮输入不起作用
- 面向对象的Javascript代码在IE7中不起作用
- 分部隐藏在jquery中不起作用
- 在phonegap应用程序内部重定向不起作用
- 键入环境安装不起作用
- 发现导入不起作用:未安装 Qt多媒体
- 以编程方式安装 Npm 不起作用
- <输入类型=“文件” />如果安装了 WINRAR,文件格式验证不起作用
- 我已经在全球范围内安装了 slush-phaser-webpack,但它不起作用
- bower安装'dev'软件包的版本;不起作用
- Bower安装命令在windows上不起作用
- 在windows上安装Node后,Node命令在cmd中不起作用