How to install TypeScript and ts-node?

Some projects can have a codebase in typescript and to run or test your program you need install ts-node and typescript.

Follow this commands:

npm install -g typescript
npm install -g ts-node