curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash
restart terminal
nvm install 14.15
If NVM is not found see the last section of this gist
nvm alias default 14.15
restart terminal
node -v
=> 14.15 should be displayed
--
If NVM was not foud you will need to add it to your zshrc
profile. Run this to open it.
code ~/.zshrc
Add those lines to the end of the file:
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"