Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

When I run the command tsc --version, I get 1.0.3.0, but not 1.7.4.

How can I find which version of Typescript installed through command line interface?

like image 521
wonderful world Avatar asked Jan 11 '16 11:01

wonderful world


2 Answers

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. If you then install tsc using npm it will install the latest version (1.7.5 at the time of this writing).

like image 155
Aviad P. Avatar answered Oct 03 '22 12:10

Aviad P.


I think you can check you environment path.Make sure C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.7 is in it.

like image 43
Gongxi Avatar answered Oct 03 '22 14:10

Gongxi