1. check your node version by running this command
l
node -v
  1. install the node version you want, for example your current version is node 14, and you'd like to install node version 12
brew install node@12
  1. unlink your current version node@14
brew unlink node@14
  1. link the old version - node@12
brew link node@12
  1. run node -v to ensure your current version is the one you want

node release schedule: https://github.com/nodejs/release#release-schedule