We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Install TypeScript

We've been doing a ton of TypeScript work in the browser, let's drop down to your machine for this last chapter.

I'm going to assume you already have node and npm installed, if you don't go do that now. We cover all that in our Learn JavaScript course.

Assignment

npm install -g typescript
tsc -v

If you don't get back a valid version, either your installation might have failed, or the install location is not in your PATH. For example, for myself on Mac, tsc is in /Users/wagslane/.nvm/versions/node/v20.11.1/bin, so I just need to ensure my PATH includes that directory.

Run and submit the CLI tests.