Skip to content

Install TypeScript

Video Lecture

Install TypeScript Install TypeScript


Install TypeScript globally

npm install -g typescript

Confirm which version is installed

tsc -v


If you run tsc -v, and are using PowerShell as the VSCode integrated terminal, then you may see the error

tsc.ps1 cannot be loaded because running scripts is
disabled on this system

You have several options, such as run your commands using the classic Windows CMD prompt, Git Bash or use the tsc.cmd option instead.

tsc.cmd -v