romach
5/6/2017 - 7:52 PM

Change modules directory destination

Change modules directory destination

mkdir ~/.npm-global
npm config set prefix '~/.npm-global'

# add to ~/.bashrc
# export PATH=~/.npm-global/bin:$PATH

source ~/.bashrc