How to find the typescript version that I use through the CLI?

I installed typescript 1.7.4 through Visual Studio 2015. In Visual Studio, I see that I installed version 1.7.4.

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

How can I find which version of typescript is installed via the command line interface?

+5
source share
2 answers

I think you can check the path to the environment. Make sure that it contains C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.7 .

+2
source

Run the where tsc , you will find out where version 1.0.3.0 is located, then you can delete it by any means. If you then install tsc using npm , it will install the latest version (1.7.5 at the time of this writing).

+11
source

Source: https://habr.com/ru/post/1240336/


All Articles