install angular version code example
Example 1: angular install
npm install -g @angular/cli
Example 2: installing angular 10
$ cd angular-example-with-routing
$ ng serve
npm install -g @angular/cli
$ cd angular-example-with-routing
$ ng serve