title: How to npm install global not as root?
body: <p>I'm on a unix box where I don't have root access.</p>
  
  <p>I changed my .npmrc file (in my user's root directory) to:</p>
  
  <pre><code>prefix=~/global_npm
  </code></pre>
  
  <p>Now when I do "npm install -g packagename" it installs inside my global_npm directory. Which is good.
  And then I gave myself path access to it by updating my .bashrc file with:</p>
  
  <pre><code>export PATH=$PATH:~/global_npm/bin
  </code></pre>
  
  <p>Do I need to do anything else? I think I need to set NODE_PATH but I'm not sure?</p>