1. Create a folder for global packages to be install into

       $ mdkir "${HOME}/.npm-packages"
       
  2. Tell npm to use this folder

       $ npm config set prefix "${HOME}/.npm-packages"
       
  3. Add the corresponding ${HOME}/.npm-packages/bin folder to your PATH