From 00c06d8744fd4b8988dc6c13182a64c75e71ba22 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 26 Oct 2015 00:07:35 +0300 Subject: [PATCH] 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 --- .npmrc | 1 - .zshrc | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 .npmrc diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 9b478de..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -prefix=${HOME}/.npm-packages diff --git a/.zshrc b/.zshrc index 801dc48..a0ef413 100644 --- a/.zshrc +++ b/.zshrc @@ -69,9 +69,9 @@ export PAGER=less # look for Ansible hosts file in current directory export ANSIBLE_HOSTS=hosts -# Enable user's "global" npm packages -if [[ -d ~/.npm-packages/bin ]]; then - PATH=$PATH:~/.npm-packages/bin +# Enable node version manager (nvm) +if [[ -d ~/.nvm ]]; then + . ~/.nvm/nvm.sh fi # Enable pyenv