Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does VS Code install TypeScript, and if so: where?

I recently read that installing VS Code also installs the TypeScript compiler. Is this true? If so, where is it installed?

I found a tsc.js file here:

C:\Users\Deb\AppData\Local\Code\app-0.3.0\resources\app\server\lib\typeScript

But I am not finding a tsc.exe anywhere.

like image 307
DeborahK Avatar asked Jul 02 '15 16:07

DeborahK


People also ask

How do you check if I have TypeScript installed?

Test that the TypeScript is installed correctly by typing tsc -v into your terminal or command prompt. You should see the TypeScript version print out to the screen. For help on possible arguments you can type tsc -h or just tsc .


1 Answers

After some trial and error I came to the conclusion that VS Code does NOT install the TypeScript compiler.

The TypeScript compiler does have to be manually installed using npm install -g typescript.

If installing under Windows on a machine that has had Visual Studio 2012/2013/2015 installed, the machine may also have other versions of TypeScript installed here: C:\Program Files (x86)\Microsoft SDKs\TypeScript\

If that is the case, VS Code may try to use the version installed there. To prevent this, remove any references to the above TypeScript path from the environment path variable.

To check the default version of the TypeScript compiler that will be found, use the command line and type: tsc -v. This should give you the version number.

like image 119
DeborahK Avatar answered Oct 16 '22 01:10

DeborahK