typescript - 为什么我收到“typings WARN deprecated <packagename> is deprecated (updated,replaced or returned)”

标签 typescript typescript-typings

我收到警告:

>typings ls
typings WARN deprecated 2016-08-05: "registry:dt/react#0.14.0+20160423065914" is deprecated (updated, replaced or removed)

但是,我似乎有最新版本:

>typings view dt~react --versions
TAG                   VERSION DESCRIPTION COMPILER LOCATION                                                                                                UPDATED
0.14.0+20160805125551 0.14.0                       github:DefinitelyTyped/DefinitelyTyped/react/react.d.ts#edcbaabb56bb0866df95dbfdf279f4a680051217        2016-08-05T12:55:51.000Z
0.13.3+20160423065914 0.13.3                       github:DefinitelyTyped/DefinitelyTyped/react/react-0.13.3.d.ts#3a44f976ba58e05adb666295d59168ef5e99ae17 2016-04-23T06:59:14.000Z

我看到标签不同,但是当我尝试

typings i <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9afeeee4e8fffbf9eedaaab4abaeb4aa" rel="noreferrer noopener nofollow">[email protected]</a>+20160805125551 -save -G

未安装带有最新标签的版本。

为什么我收到警告以及如何更新它?

最佳答案

应该是--save,注意--
或者您可以使用 -S 代替。

参见documentation了解更多信息。

关于typescript - 为什么我收到“typings WARN deprecated <packagename> is deprecated (updated,replaced or returned)”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38826262/

相关文章:

typescript - 为什么箭头函数名称必须是 const/let?

javascript - 在 AppModule 声明后添加提供程序

node.js - 仅使用 gulp 或 webpack 构建此 Node 项目

javascript - 为什么我必须为常规 "const"变量指定类型,而不是为 "const"循环中定义的 "for"变量指定类型?

javascript - Ionic 2 RC0 属性 'tz' 在类型 'typeof moment' 上不存在

javascript - 使用 redux connect 函数会丢失 IDE 中的类信息 (PhpStorm/WebStorm)

typescript - 在 Typescript 中,如何检索我知道键但不知道路径的深层嵌套属性类型?

typescript - 在 TypeScript 中找不到模块的声明文件

reactjs - 如何包装内部组件,保留大部分 Prop ?

reactjs - this.onPressItem 不是 map 中的函数