npm install typescript code example
Example 1: install typescript
npm install -g typescript
Example 2: npm install cli vue
npm install -g @vue/cli
yarn global add @vue/cli
Example 3: 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
Example 4: how to install typescript in windows 10
npm install -g typescript
Example 5: install typescript
Don't forget to use the dev flag!!!
Yarn:
yarn global add --dev typescript
NPM:
npm install -g --save-dev typescript
Example 6: npm typescript
npm install -g typescript