npm ERR! Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/@angular/cli' -> '/usr/local/lib/node_modules/@angular/.cli-G39XYeT9' code example
Example: npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/@angular/cli/bin/ng' -> '/usr/bin/ng'
sudo npm install -g @angular/cli
sudo chown -R $USER /usr/local/lib/node_modules