Chris Mendez in Angular, NodeJS

How to install Angular

Here's how to install Angular using Node Package Manager.

Step 1

Install the latest version of Angular.

npm install -g @angular/cli@latest  

Step 2

Install the latest version of Typings.

npm install -g typings  

Step 3

Install the latest version of Typescript.

npm install -g typescript  

Step 4

Install the latest version of Yarn. Yarn is a better package manager than npm. Yes, it's ironic that you use npm to install yarn but in the end, if you want to achieve something similar to Ruby on Rail's "freeze" or bundle package, yarn is your best bet.

npm install -g yarn  

Step 5

Run yarn instead of npm i.

yarn  

Troubleshooting Issues

If you have any issues installing Angular, try these troubleshooting solutions.


Resources