Step 1 - Install npm
In order to install npm, just install node.js. when you install Node.js, you automatically get npm installed on your computer because npm is distributed with Node.js
Click Here to download node.js
Click Here to download node.js
After installation just verify that you have node.js in your machine.
node -v (or) npm -v
node -v (or) npm -v
Step 2 - Install Angular CLI
CLI - It is a Tool, which is used to create, develop and maintain angular applications.
npm install -g @angular/cli - This is the command used to install angular CLI.
npm -v - This is command used to get version of NPM.
Create a new angular project
ng new ProjectName
command to Create a angular project |
Run a Project
Open your angular project through command prompt and then type below command to run the project
To run angular project |
ng s --o
or
ng serve --open
--------------------------
Terminate the Job
Ctrl +C
---------------------------