Globally Installing TypeScript
You can use npm to install TypeScript globally, this means that you can use the
tsc
command anywhere in your terminalnpm install -g typescript
To run typescript npx tsc
Check Typescript version
tsc -v
You might get Error
You can run this command in PowerShell. Make sure to run it as an administrator
// run Powershell as Administrator
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Now you can Check, your typescript version
tsc -v