简体   繁体   English

如何找到我通过CLI使用的打字稿版本?

[英]How to find the typescript version that I'm using through CLI?

I installed typescript 1.7.4 via Visual Studio 2015. In Visual Studio I see that I installed version 1.7.4. 我通过Visual Studio 2015安装了typescript 1.7.4。在Visual Studio中,我看到我安装了1.7.4版本。

When I run the command tsc --version , I get 1.0.3.0, but not 1.7.4. 当我运行命令tsc --version时 ,我得到1.0.3.0,但不是1.7.4。

How can I find which version of Typescript installed through command line interface? 如何通过命令行界面找到安装的Typescript版本?

Run the command where tsc you will know where the 1.0.3.0 version is located, then you can remove it by whatever means. 运行命令where tsc将知道1.0.3.0版本所在的位置,然后您可以通过任何方式将其删除。 If you then install tsc using npm it will install the latest version (1.7.5 at the time of this writing). 如果您使用npm安装tsc ,它将安装最新版本(撰写本文时为1.7.5)。

我认为你可以检查你的环境路径。确保C:\\Program Files (x86)\\Microsoft SDKs\\TypeScript\\1.7在其中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在哪里可以找到安装在 Visual Studio 中的 TypeScript 版本? - Where can I find the TypeScript version installed in Visual Studio? 找不到我不使用的参考-Silverlight - Unable to find a reference I'm not using - Silverlight 如何检测我是否正在使用特定的 Visual Studio 版本编译代码? - How to Detect if I'm Compiling Code with a particular Visual Studio version? 如何将打字稿升级到1.7版? - How to upgrade typescript to version 1.7? 如何使用 CLI 恢复 NuGet package? - How do I restore a NuGet package using the CLI? 为什么即使更新后,Visual Studio仍使用旧版本的TypeScript? - Why is Visual Studio using an old version of TypeScript, even after I update it? 如何找到解决方案正在使用的默认Windows sdk版本? - How to find the default windows sdk version that a solution is using? Visual Studio 2013找不到用于angular 2项目的Typescript版本 - Visual Studio 2013 can't find version of Typescript for angular 2 project 什么是Visual Studio TypeScript虚拟项目? 如果我在外部编译,我怎么能把它弄出来呢? - What is a Visual Studio TypeScript Virtual Project? And how can I get it out of my way if I'm compiling externally? 如何找出要为其他版本的Visual Studio安装的Qt Visual Studio插件版本? - How can I find out which version of Qt Visual Studio Addin to install for different version of Visual Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM