Angular is a free and open-source web application structure drove by the Angular Team at Google and by a network of people and companies. Precise is a finished rework from a similar group that constructed AngularJS.
In this post, We will install Angular Cli on ubuntu 16.04 and 18.04.
Update Repository
Step 1:- You need to update the ubuntu current repository by using the following command.
$ sudo apt-get update
Install Nodejs
$ sudo apt-get install nodejs -y
To get version of nodejs and NPM use the following cli.
$ nodejs -v
$ npm -v
Install Angular Cli
Step 2:- After successful installation of node.js and npm so then We are ready to install Angular cli, Use the following command for that.
$ sudo npm install -g @angular/cli
This will install latest version of Angular cli, If you want to install any specific version of angular version use the given command.
Install Specific Version of Angular
here you can choose the version to install Angular according to your specific version.
$ npm install -g @angular/cli@9
$ npm install -g @angular/cli@8
$ npm install -g @angular/cli@7
$ npm install -g @angular/cli@6
Verify Angular Version
Step 3:- To get the Installed version of Angular, Use the following command.
$ ng --version