From the course: TypeScript for Node.js Developers

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

TypeScript setup

TypeScript setup

From the course: TypeScript for Node.js Developers

Start my 1-month free trial

TypeScript setup

- [Instructor] In order to start using TypeScript, we need to set it up in our system and project. We'll cover that over the next few videos, so let's get started. So, the first thing we need to do is install TypeScript. So, we'll go into our terminal, so click on View, Terminal, and then, let's just clear this, and we'll do npm, install, or you can do i, and you need to install it globally, so you need to do -g or global, and then, typescript. And if you get this error, and I did this on purpose, that means that you don't have access or admin access to your system in your batch. So, what you need to do is do sudo npm install - g, and then, typescript, and then, enter the password of your system. Once, TypeScript is installed, let's test this with an actual file, so, let's create a ts file. So, Create New File, and let's do test.ts, and inside of that file, let's just do a console.log, and then, save this. In order to save TypeScript, you need to do tsc, and then, the name of the…

Contents