typescript install via npm code example
Example 1: install typescript
npm install -g typescript
Example 2: install typescript in node project
//Author:Mohammad Arman Khan
//Command to install typeScript in node(express)Project
npm i -D @types/node typescript ts-node