- check your node version by running this command
node -v |
- 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 |
- unlink your current version node@14
brew unlink node@14 |
- link the old version - node@12
brew link node@12 |
- run
node -v
to ensure your current version is the one you want
node release schedule: https://github.com/nodejs/release#release-schedule