title: Can't install angular-cli on Mac
body: <p>This is probably very trivial, but I am hitting my head against the wall while I am trying to (unsuccessfully) install angular-cli.</p>
  
  <p>I am following the official <a href="https://www.npmjs.com/package/angular-cli/tutorial" rel="noreferrer">angular-cli documentation here.</a></p>
  
  <pre><code>mkotsollariss-MacBook-Pro:~ mkotsollaris$ npm -v
  5.6.0
  mkotsollariss-MacBook-Pro:~ mkotsollaris$ node -v
  v8.9.4
  </code></pre>
  
  <p>Then I run npm install -g angular-cli which gives me:</p>
  
  <pre><code>mkotsollariss-MacBook-Pro:~ mkotsollaris$ npm install -g angular-cli
  npm WARN deprecated angular-cli@1.0.0-beta.28.3: angular-cli has been renamed to @angular/cli. Please update your dependencies.
  npm WARN deprecated gulp-util@3.0.7: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
  npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
  npm WARN @angular/core@2.4.10 requires a peer of rxjs@^5.0.1 but none is installed. You must install peer dependencies yourself.
  npm ERR! path /Users/mkotsollaris/.npm-packages/lib/node_modules/.staging/@angular
  npm ERR! code EACCES
  npm ERR! errno -13
  npm ERR! syscall rmdir
  npm ERR! Error: EACCES: permission denied, rmdir '/Users/mkotsollaris/.npm-packages/lib/node_modules/.staging/@angular'
  npm ERR!  { Error: EACCES: permission denied, rmdir '/Users/mkotsollaris/.npm-packages/lib/node_modules/.staging/@angular'
  npm ERR!   stack: 'Error: EACCES: permission denied, rmdir \'/Users/mkotsollaris/.npm-packages/lib/node_modules/.staging/@angular\'',
  npm ERR!   errno: -13,
  npm ERR!   code: 'EACCES',
  npm ERR!   syscall: 'rmdir',
  npm ERR!   path: '/Users/mkotsollaris/.npm-packages/lib/node_modules/.staging/@angular' }
  npm ERR! 
  npm ERR! Please try running this command again as root/Administrator.
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /Users/mkotsollaris/.npm/_logs/2018-01-14T23_11_22_610Z-debug.log
  mkotsollariss-MacBook-Pro:~ mkotsollaris$ ng
  -bash: ng: command not found
  </code></pre>
  
  <p>I think I have tried almost everything on the web, and still can't make this to work.</p>
  
  <p>My OS is <code>MacOS High Sierra 10.13.2</code>.</p>
  
  <p>Any idea what am I missing here?</p>