Redirect NPM to use my ~ for global installs
This commit is contained in:
parent
979d555736
commit
6761018c4f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue