Install TypeScript globally
Confirm which version is installed
If you run
tsc -v, and are using PowerShell as the VSCode integrated terminal, then you may see the error
cannot be loaded because running scripts is disabled on this system.
To fix in VSCode,
File -> Preferences -> Settings and in the search bar write
In the options for
Windows, press the
edit in settings.json and add this line below to the file as shown in the image below.
Close the integrated terminal and try again.