Switch easily your node version
Switch easily your node version with homebrew and without the need to install a version manager
Sometimes, you need to change your node version but you do not have the need to install a version manager.
Here’s a little serie of command to do that:
- Let’s see the version available to install
brew search node
- Install the desired version
brew install node@10
- Unlink the curent node version in use
brew unlink node
- Link the new version (sometimes, you may have to use
$ brew link --force --overwrite node@10
)
brew link node@10
For more information, check this StackExchange thread.