Wednesday, 26 December 2018

How to install Angular CLI?

To install Angular CLI you need Node version 6.9.0 or higher, and NPM 3 or higher.

To check the versions that you have on your machine type the following commands in a command window. 

Run Command Prompt as an administrator 
  • node -v 
  • npm -v

To install Angular CLI run the below command

npm install -g @angular/cli 

or

npm i -g @angular/cli 

-g stands for install angular CLI globally.

To verify the version of Angular CLI installed execute below command

ng -v 

No comments:

Post a Comment