I am unable to install Angular Cli globally through npm. I keep getting this error when I run npm install -g @angular/cli on macOS:
npm install -g @angular/cli
npm ERR! nod
I fixed the issue by running
sudo npm install -g @angular/cli
After prompting for password enter it.
Then you will be able to install.