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
This was a great link for me.
https://flaviocopes.com/npm-fix-missing-write-access-error/
once I did this command
sudo chown -R $USER /usr/local/lib/node_modules
in my terminal, the angular CLI install worked perfectly!