Thursday, October 21, 2021

Install/Setup Angular and Ionic CLI

Angular and Ionic have a command line interface to create and run apps. So we need to install both CLI’s. Before installing CLI’s, make sure your computer has installed NodeJS. 




Install Angular CLI :


Run below command from Command prompt,

npm install -g @angular/cli

Note : -g options mean install globally. If installed globally, can access angular from anywhere. Otherwise it has limited access.


If you wanna install a specific angular version, mention the version end of command with @.

npm install -g @angular/cli@12.0.0

Once lation is done, make sure it’s installed correctly using the below command.

ng version


Install Ionic CLI :


Run below command from Command prompt,

npm install -g @ionic/cli

Note : -g options mean install globally. If installed globally, can access ionic commands from anywhere. Otherwise it has limited access.


If you wanna install a specific ionic version, mention the version end of command with @.

npm install -g @ionic/cli@6.0.0

Once installation is done, make sure it’s installed correctly using the below command.

ionic version


Now Installed both Angular and Ionic CLI successfully. You can start creating and running projects with Angular and Ionic.


0 Comments:

Post a Comment