Howto install globally npm packages without sudo, on Linux

Just a quick description on how to properly install (e.g. without changing access rights)  globally npm packages on Linux.

Inspired from a SO answer.