diff --git a/.bash_profile b/.bash_profile index 070b3d6..f401879 100644 --- a/.bash_profile +++ b/.bash_profile @@ -12,3 +12,8 @@ esac # Add home bin folder to $PATH PATH=$PATH:~/bin + +# Redirect npm global installs to user folder instead +# Ref: https://wiki.archlinux.org/index.php/Node.js#Allow_user-wide_installations +PATH="$HOME/.node_modules/bin:$PATH" +export npm_config_prefix=~/.node_modules