Skip to content

Prerequisite

  1. Download and install NodeJS LTS

  2. Check your NodeJS installation by typing

    bash
    node -v   # version 14.15.4 or later
    npm -v    # version 6.14.10 or later
    ```
  3. Install typescript

    bash
    npm i -g typescript
    ```
  4. Verify that the TypeScript transpiler is installed

    bash
    tsc --version   # Version 4.x
    ```
    
    :::tip
    A transpiler is like a compiler, but instead of generating low-level maching instructions, a transpiler generates the output as another high-level language. Specifically, `tsc` transpiles TypeScript into JavaScript.
    :::