Global npm packages with Nodenv and Yarn
I'm not an authority to tell you if you yarn is better or not than npm but I really like that yarn installs global packages to ~/.config/yarn/global
(macOS) (link to comment).
This means that when you switch to another Node version with nodenv or whatever else, you don't need to migrate your globally installed packages!
That's a big win for me.