title: Angular CLI Error path and code EEXIST
body: <p>I first installed npm and made sure it was up to date.
  Then I tried installing angular but I was faced with errors</p>
  
  <pre><code>~ kode$ sudo npm install -g @angular/cli
  
  Password:
  
  npm WARN ajv-keywords@3.1.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
  
  npm ERR! path /usr/local/bin/ng
  
  npm ERR! code EEXIST
  
  npm ERR! Refusing to delete /usr/local/bin/ng: ../lib/node_modules/angular-cli/bin/ng symlink target is not controlled by npm /usr/local/bin
  
  npm ERR! File exists: /usr/local/bin/ng
  
  npm ERR! Move it away, and try again.
  
  
  npm ERR! A complete log of this run can be found in:
  
  npm ERR!     /Users/kode/.npm/_logs/2018-02-15T13_10_57_836Z-debug.log
  </code></pre>
  
  <p>I don't understand how it tells me that the file already exists yet when I run any ng command it tells me:</p>
  
  <pre><code>ng: command not found
  </code></pre>
  
  <p>I'm fairly new to node and angular all together so here's what I tried:</p>
  
  <p>I tried uninstalling angular: <code>sudo npm uninstall -g @angular/cli</code></p>
  
  <p>Then reinstalling it: <code>sudo npm install -g @angular/cli</code></p>
  
  <p>And it didn't work of course.</p>
  
  <p>If you do know how to solve this please help a beginner out, thank you.</p>