visual-studio - 如何通过 CLI 找到我使用的 typescript 版本?

标签 visual-studio typescript

我通过 Visual Studio 2015 安装了 typescript 1.7.4。在 Visual Studio 中,我看到我安装了 1.7.4 版。

当我运行命令 tsc --version 时,我得到 1.0.3.0,但不是 1.7.4。

如何通过命令行界面找到安装的 Typescript 版本?

最佳答案

运行命令where tsc你会知道1.0.3.0版本在哪里,然后你可以通过任何方式删除它。如果您随后使用 npm 安装 tsc,它将安装最新版本(在撰写本文时为 1.7.5)。

关于visual-studio - 如何通过 CLI 找到我使用的 typescript 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34720318/

相关文章:

c++ - 从链接中删除库模块

c++ - Visual-Studio 教程,介绍如何将所有代码放在一个目录中,并将所有 sln 和 proj 内容放在另一个目录中?

visual-studio - 安装应用程序中的 Visual Studio 2010 更新注册表

javascript - typescript 函数联合类型缺少调用签名

typescript - 从 TypeScript 中的 node_modules 文件夹导入声明文件

c# - (未处理AccessViolationException)如何在C#中实现HandleProcessCorruptedStateExceptions?

angular - 错误 NG6001 : Cannot declare 'Highchar tsChartComponent' in an NgModule as it's not a part of the current compilation

javascript - 在 Typescript 中将数据添加到请求

javascript - 使用 TypeScript/Angular2 循环对象的键/值

visual-studio - 如何在 Visual Studio 2022 中保留旧的深色主题