install typescript globally npm code example
Example 1: install typescript global
npm install -g typescript
Example 2: install typescript using npm
npm install -g typescript
npm install -g typescript
npm install -g typescript