[英]How do I use old typescript typings after npm package was removed and renamed?
Recently, a number of packages I'm using were renamed. 最近,我正在使用的许多软件包已被重命名。 For example, glue
was renamed to @hapi/glue
. 例如, glue
被重命名为@hapi/glue
。 There are old typings that should still work fine available at @types/glue
, but the typescript compiler will no longer use those; @types/glue
有一些仍可以正常工作的旧@types/glue
,但是打字稿编译器将不再使用它们。 it searches for typings at @types/hapi__glue
. 它在@types/hapi__glue
搜索@types/hapi__glue
。
How do I configure typescript to use the old typings? 如何配置打字稿以使用旧打字? Essentially, how do I create a typings alias? 本质上,如何创建打字别名?
您不需要别名,请删除旧的打字包并安装新的 :
npm install --save @types/hapi__glue
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.