How to Install Typescript?

First, we have to install the node js to work with Typescript.

Node js providers an environment to execute the Javascript outside the browser.
Install the latest stable version of Node js. After installing node js you will have NPM (node package manager) which helps to install third-party libraries.

Open command prompt and type below command to check node js install or not
node --version
v12.16.3 (displays the version installed)

Now type the below command to install typescript
npm install -g typescript
-g this signifies that we are going to install typescript globally

After installing successfully check using below command
tsc --version
Version 3.9.2 (displays the version installed)

Now you can start working with typescript using your favorite editors like vscode, sublime Atom, etc

Have a look at the basic concepts of Typescript