hennes' npm cheatsheet
Install packages globally to ~/.local
npm config set prefix '~/.local/'
The config is stored in `~/.npmrc`. Executables are stored in `~/.local/bin`. Node modules are stored in `~/.local/lib/node_modules/`. Make sure `~/.local/bin` is part of `$PATH`.
Update npm and node with npm
npm install -g npm@latest npm install -g node@lts
Updates to latest version of npm and latest LTS version of node.