Install NVM by Homebrew

The best way on Mac to install NodeJS may be via NVM (according to Stackoverflow topic).

brew install nvm.

oh-my-fish

https://github.com/oh-my-fish/oh-my-fish

nvm in fish

https://github.com/derekstavis/plugin-nvm

Commands

nvm ls-remote # List available versions
nvm install v14.17.3 # Install a specific NodeJS version
nvm alias default v14.17.3 # Set this version as the global default version.