title: Unable to use NPM without sudo
body: <p>I have just installed node and NPM using homebrew, and before that with the package downloaded from the Nodejs website and I still cannot use npm at all without prefixing it with sudo. </p>
  
  <p>When I try <code>npm -v</code> for example, no error is shown, my terminal just waits and waits and waits until finally, a <code>[Process completed]</code> message appears. Why is this and how do I fix it?</p>
  
  <p>I have searched around and tried many things, including the advice in this <a href="https://stackoverflow.com/questions/16151018/npm-throws-error-without-sudo">SO post</a></p>