1.Installing Node.js and updating npm
Updating npm----npm install npm@latest -g
Installing TypeScript----npm install -g typescript
This will install the latest version of TypeScript globally meaning PATH environment variable is set.using "tsc -v" verify;
using above command to install latest version and delete any existing versions.