Use nvm instead of local npm
Easier to use different nodejs versions and have "global" packages that don't need root to install. See: https://github.com/creationix/nvm Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
parent
457e075154
commit
00c06d8744
6
.zshrc
6
.zshrc
@ -69,9 +69,9 @@ export PAGER=less
|
|||||||
# look for Ansible hosts file in current directory
|
# look for Ansible hosts file in current directory
|
||||||
export ANSIBLE_HOSTS=hosts
|
export ANSIBLE_HOSTS=hosts
|
||||||
|
|
||||||
# Enable user's "global" npm packages
|
# Enable node version manager (nvm)
|
||||||
if [[ -d ~/.npm-packages/bin ]]; then
|
if [[ -d ~/.nvm ]]; then
|
||||||
PATH=$PATH:~/.npm-packages/bin
|
. ~/.nvm/nvm.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable pyenv
|
# Enable pyenv
|
||||||
|
Loading…
Reference in New Issue
Block a user