Installing the Angular CLI is as easy as running the following command in your Terminal:
npm install -g @angular/cli
On some systems, you may need to have elevated permissions to do so; in that case, run your Terminal window as an administrator and on Linux/macOS instead run the command like this:
sudo npm install -g @angular/cli