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.
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 .
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With