title: Angular Cli - ng command not found in terminal
body: <p>Specs:</p>
  
  <ul>
  <li><p>MacOS 10.12.6</p></li>
  <li><p>Node.js v8.9.4</p></li>
  <li><p>NPM 5.6.0</p></li>
  </ul>
  
  <p>I'm new to programming (and stackoverflow). I installed Angular using the following command in the terminal: npm install -g @angular/cli. I ran into an EACCESS error but <a href="https://docs.npmjs.com/getting-started/fixing-npm-permissions" rel="nofollow noreferrer">this</a> resolved it. Initially I was able to run the ng command. But after closing and reopening the terminal, the "ng: command not found" error happened. I removed Angular and reinstalled it. But that didn't help. </p>
  
  <p><a href="https://i.stack.imgur.com/h3hi2.png" rel="nofollow noreferrer">Screenshot of the "ng: command does not exist" error</a></p>
  
  <p><a href="https://i.stack.imgur.com/fLnfr.png" rel="nofollow noreferrer">Screenshot of npm list -g --depth=0</a></p>
  
  <p><a href="https://i.stack.imgur.com/HvaPP.jpg" rel="nofollow noreferrer">Errors in uninstalling Angular part 1</a></p>
  
  <p><a href="https://i.stack.imgur.com/HW7V7.png" rel="nofollow noreferrer">Errors in uninstalling Angular part 2</a></p>
  
  <p><a href="https://i.stack.imgur.com/EUHcD.png" rel="nofollow noreferrer">echo $PATH</a></p>