since you never know if the next #npm package will shred your system, you'd better not use -g to install stuff
so
$ npm install -g qrcode-terminal
becomes
$ npm install qrcode-terminal
and add this to ~/.profile
if [ -d "$HOME/node_modules/.bin" ] ; then
PATH="$HOME/node_modules/.bin:$PATH"
fi