How to install Angular 6 - Tutorial

How to install Angular 6 - Tutorial

All right then Angular 6 has been released! In this tutorial, we are going to install angular 6 step-by-step from Beginner level

If you already familiar with Angular 2,4 or 5 then this process will remain same.

Fortunately, if you already have experience with Angular 2,4 or 5 the process of starting a new Angular 6 project is pretty much the same.

However, if you have no previous experience with Angular, don’t worry — installing Angular 6 is easy.

So, let’s get started…

Prerequisites

You’re going to need a couple of things before proceeding:

To check whether or not you have both of these installed, visiting your command line or Terminal and type:

node -v
npm -v

 If you don’t have knowledge of node.js then please check getting-started-with-node.js article else continue here.

Installing Angular 6 through the CLI

The Angular CLI (Command Line Interface) is the quickest and easiest way to get started with an Angular 6 project.

We’re going to use NPM  to install the Angular CLI through the following command:

npm install -g @angular/cli

Once installed, you can access the CLI tool by typing ng.

To check the version of your Angular CLI, type:

ng -v

It will show currently installed CLI Version, Great now we have installed CLI and its ready to use with angular.

Create Blank Project in Angular 6 with CLI

Now go to the directory where you want to place the project with CLI and then type:

ng new <Project_Name>

 It will take some time, once installation completed go to project directory and type:

ng -v

It will return actual Angular version we have installed and other info.

now we have installed Angular 6 and you can run the project in-browser by typing:

ng serve

And that’s it! You have a latest Angular 6 ready and waiting for you to develop.

Also read,

Conclusion:

Thanks for reading.

Do let me know If you face any difficulties please feel free to comment below we love to help you. if you have any feedback suggestion then please inform us by commenting.

Don’t forget to share this tutorial with your friends on facebooktwitter, and Google+. 

 

 

 

 

 

 

 

 

 

Subscribe to our Newsletter

Stay up to date! Get all the latest posts delivered straight to your inbox.

If You Appreciate What We Do Here On TutsCoder, You Should Consider:

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

Leave a Comment