Author: Dawid Adach
Free live lesson
The goal of the following tutorial is to guide you on how to install Angular on your local machine. This requires both Node.js and NPM to be installed on your machine. If you don't have it or don't know if you have, please check the previous tutorial. If you already have it we can start installing Angular!
Angular and Angular CLI
Angular is a TypeScript-based open-source front-end web application platform led by the Angular Team at Google and by a community of individuals and corporations. Teh angular Command Line Interface (CLI) is a tool which helps you to scaffold and build Angular apps using modules. It also handles common tedious tasks for you. We will show it in the example but first - let's install it.
Open the terminal and run:
npm install -g @angular/cli
Next we will install Typescript - a superset of JS, that we will learn more about in later lessons, for now just note that it's required by Angular
npm i -g typescript
2. Verify the installation
Run the following command in the terminal:
You should see the current version of Angular, CLI and Typescript:
3. First Angular app
Since everything is ready, we are ready to create our first Angular app. Open the terminal and run the following command:
ng new hello-world
Now let's navigate to our new project:
ng serve -o
Our browser should automatically open (cause we added the
-o option) new window/card in our default web browser and display the following content. If that didn't happen, then open a browser manually and navigate to
Now let's get back to our current project.Click the NEXT LESSON button to proceed further.
Previous lesson Next lesson
Spread the word: