When you're juggling projects pinned to different Node.js versions, nvm is the obvious answer — but it's not the only one. On macOS, Homebrew already ships parallel Node formulae (node, node@14, node@18, etc.), and brew link / brew unlink will swap which version owns the node symlink. No extra tool, no shell init hook, no nvm use in every new terminal.
The full post walks through installing Homebrew, pulling a specific node@<version> formula, and the unlink/link dance to switch between them — handy when you'd rather not add another version manager to your dotfiles.
Originally published at andreasbergstrom.dev — read the full post there.
Top comments (0)