Gustavo Daniel
Gustavo Daniel

Reputation: 2478

Is it necessary to install Typescript before installing Angular?

According to an Angular book (updated to Angular 9) that I'm currently reading, the Angular installation steps are:

  1. Installing Node.js
  2. Installing Typescript: npm install -g typescript
  3. Installing Typings: npm install --save @types/npm
  4. Installing Angular CLI: npm install -g @angular/cli

Then, I went to the official Angular setup documentation and the Typescript and Typings installation are not included.

Do you know what is the purpose of those installations? Is it a deprecated way of installing Angular? The latest Angular version already include those packages?

I made some research but I couldn't find an answer to these questions.

Thanks!

Upvotes: 1

Views: 3459

Answers (1)

Poul Kruijt
Poul Kruijt

Reputation: 71911

The only thing necessary is Node.js. There is no benefit of installing typescript. This will all be handled by the Angular CLI. They require a specific typescript version, which is usually one version behind the actual latest version of typescript.

My advice, stick to the excellent guides on angular.io. It's your safest bet.

Upvotes: 7

Related Questions