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