From 8087e8fba2acda2820e8c2600dfbbc8b3867fed4 Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Thu, 31 Aug 2017 19:14:49 +0200 Subject: [PATCH] Direct `npm install -g` into home folder --- .bashrc | 2 +- .npmrc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .npmrc diff --git a/.bashrc b/.bashrc index 5d8d531..add2a90 100644 --- a/.bashrc +++ b/.bashrc @@ -72,7 +72,7 @@ export PAGER='less -R -F -X -S -n -i -m' export GOPATH=~/src/go export GOROOT=~/pkg/go -export PATH="$HOME/bin:$PATH:$GOROOT/bin:$GOPATH/bin" +export PATH="$HOME/bin:$PATH:$GOROOT/bin:$GOPATH/bin:$HOME/.npm/bin" if [ -d $HOME/.gem/ruby ]; then export PATH="$PATH:$(echo $HOME/.gem/ruby/*/bin | tr ' ' :)" fi diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..701ffd9 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +prefix = ${HOME}/.npm