From f02e2016e21070de66dc5419d9a0592d9acc9e30 Mon Sep 17 00:00:00 2001 From: Enrico Fasoli Date: Tue, 25 Aug 2015 10:41:23 +0000 Subject: [PATCH] use local npm prefix --- runcoms/zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runcoms/zshrc b/runcoms/zshrc index 039b882..6175a54 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -10,4 +10,6 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" fi -# Customize to your needs... +# Use local npm prefix +export NPM_CONFIG_PREFIX=~/.npm_prefix +export PATH=$PATH:$NPM_CONFIG_PREFIX/bin