Global npm packages with Nodenv and Yarn

In notebook:
Work Notes
Created at:
2019-03-21
Updated:
2019-03-21
Tags:

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.