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:

  1. Let’s see the version available to install
     $ brew search node
    
  2. Install the desired version
    $ brew install node@10
    
  3. Unlink the curent node version in use
    $ brew unlink node
    
  4. 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.