[英]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.