Redirect NPM to use my ~ for global installs

This commit is contained in:
David Thurstenson 2020-06-04 15:30:11 -05:00
parent 979d555736
commit 6761018c4f
1 changed files with 5 additions and 0 deletions

View File

@ -12,3 +12,8 @@ esac
# Add home bin folder to $PATH # Add home bin folder to $PATH
PATH=$PATH:~/bin 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