TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. Any browser. Any host. Any OS. And it’s OpenSource.

You can install TypeScript from the command prompt or directly from Visual Studio Code. This is one of the powerful features which I like most in VSCode.

1. Open Visual Studio Code

2. Click on Terminal menu

3. Click ‘New Terminal’

4. You will see that Terminal is open at the bottom-most screen of Visual Studio Code

5. Run below command

# Install TypeScript locally
npm install typescript
# Install TypeScript globally
npm install -g typescript

You are Done!!!

1. I would recommend installing typescript and any other library in your root project directory.
2. Ignore any warning you see in the terminal while installing typescript.

Leave a Comment