We installed TypeScript globally in Chapter 1, TypeScript Basics. In this section, we are going to install it locally within our project. Having TypeScript locally simplifies the build process a little bit.
We can install TypeScript just within our project by running the following command in the terminal:
npm install typescript --save-dev
The --save-dev command marks the TypeScript dependency as being only for development purposes.