rror: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@angular' code example
Example 1: Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/typescript'
sudo chown -R $USER /usr/local/lib/node_modules
Example 2: 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