From 92174fe65e599029730ae05532962769db8f896b Mon Sep 17 00:00:00 2001 From: Felipe Apostol Date: Mon, 8 Oct 2018 22:24:16 +0100 Subject: [PATCH] add export NPM_CONFIG_PREFIX --- .zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.zshrc b/.zshrc index e29ceff..6d5c2e5 100644 --- a/.zshrc +++ b/.zshrc @@ -473,6 +473,9 @@ if [ -f $LUNCHY_DIR/lunchy-completion.zsh ]; then . $LUNCHY_DIR/lunchy-completion.zsh fi +# ignore ~/.nvm/versions - always install global modules in /usr/local +export NPM_CONFIG_PREFIX="/usr/local" + # npm global install without sudo NPM_PACKAGES="${HOME}/.npm-packages"