Upgrade Node Without Losing Global Packages (NVM + Yarn)
If you manage your Node versions with NVM and also prefer Yarn over NPM, you'll soon realize that when you install a new version of node, Yarn's references to your globally installed packages are lost. »