This is probably very trivial, but I am hitting my head against the wall while I am trying to (unsuccessfully) install angular-cli.
I am following the official angul
i faced similar issue while installing angular-cli on Mac Mojave.
Correct installation steps are:
/usr/local/lib/node_modules/
to root. execute below command to set the owner to your user:
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
npm install -g @angular/cli
(avoid using sudo)