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