npm install -g @angular/cli
If you want to install a specific version of Angular CLI, say version 1.7.3, you can run npm install -g @angular/[email protected] in the second step.
npm install -g @angular/[email protected]