To Install Angular in your machine you need to follow below steps:
1. Install node.js (from https://nodejs.org/en/download/)
It' recommended to install latest stable release.
once you will get .msi (installer) It's similar to other software installation.(click next--> next-> finish.)
Now, Open command Prompt and type command : node --version
It will display version of installed node in your machine.
2.Install Angular CLI
To install angular cli type npm install -g @angular/cli on command prompt.
-g is used in above command to install angular globally i.e. machine wide, so it would be accessible for all other angular applications.
you will see above screen once you'll run npm install -g @angular/cli command.
Now you can check version of installed angular cli by typing ng --version command.
You are done with angular setup.
3. Create first angular application
To create angular app, type ng new application-name on command prompt.(application-name may be any valid name you want to give to your application for example ng new HelloWorld).
No comments:
Post a Comment