Install Node.js
Download and install the latest LTS version from nodejs.org.
Install TypeScript
Open terminal and run:
npm install -g typescript
Install VS Code
Download from code.visualstudio.com and install the official TypeScript extension.
Create First Project
mkdir ts-project && cd ts-project
npx tsc --init
Create hello.ts:
let message: string = 'Hello, TypeScript!';
console.log(message);
Compile and run:
npx tsc hello.ts
tsc hello.ts && node hello.js