simple bash script to configure npm to use a hidden directory in your users directory
run this bash script to configure your npm to avoid permission problems
wget https://raw.githubusercontent.com/pcnate/npm-configure/master/add-npm-global.sh -q -O - | bash
Tested on
- raspbian
- Ubuntu 16.04
- Ubuntu 18.04 LTS
- Pop!_OS 18.04 LTS