# Typescript-installing-typescript-and-running-the-typescript-compiler-tsc
How to install TypeScript and run the TypeScript compiler against a .ts file from the command line.
# Steps.
# Installing Typescript and running typescript compiler.
To install Typescript Comiler
npm install -g typescript
To check with the typescript version
tsc -v
Download Visual Studio Code for Linux/Windows
Visual Code Download Link (opens new window)
- Open Visual Studio Code
- Open Same Folde where you have installed Typescript compiler
- Add File by clicking on plus icon on left pane
- Create a basic class.
- Compile your type script file and generate output.
See the result in compiled javascript of written typescript code.
Thank you.