Gobal NPM directory

To fix common NPM global installation permisions problems, make NPM installation directory writable by placing it in user's home.

  1. Set NPM prefix:

     npm config set prefix ~/npm
    
  2. Append this to your .bashrc or equivalent:

     export PATH=$HOME/npm/bin:$PATH