Skip to content

Install TypeScript

Video Lecture

Install TypeScript

Description

This is a code heavy course, and we want our code to be robust, So we will be writing it in typescript. This will also enable advanced Intellisense features in our VSCode so that we can quickly see the available methods and properties in our Three.js scripts, and also have extra documentation available to us much quicker.

Install TypeScript globally and confirm which version is installed

npm install --location=global typescript
tsc -v

Troubleshooting

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

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

Comments