Setup Angular 4.2.4 with Visual studio code using Angular CLI

1.     Install Visual studio code with your machine.

2.     Install latest version of Node.js for window 64 bit with your machine

3.     Now go with command prompt and check node and npm version installed for cross check after installation. Use below commands and press enter to see version details

node -v
              example: 5.3.0
npm -v
             example: v8.4.0
4.       Now, install Angular CLI globally. Go with command prompt and use below command & press enter

npm install -g @angular/cli

5.        After CLI installation, we are ready to create new project. Now, go with local directory in which you want to create your project in command prompt. Use below command to create new project
 ng new my-project-name

6.       Go with your project directory and use below command to run your project then press enter
 cd my-project-name

 ng serve


 After enter open your browser on http://localhost:4200/, you will get your first app.

Comments

Popular posts from this blog

Single Sign On (SSO) Implementation in ASP.NET MVC

Setup Angular 4.2.4 with Visual studio 2015 And Run by Using F5