Official documentation: github.com/nvm-sh/nvm/…

You can choose either of the two:

The curl - o - https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash wget -- qO https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bashCopy the code

Then run the NVM command on the terminal. If ZSH: Command not found: node is displayed

Do the following

ZSHRC // If there is no touch ~/. ZSHRC copy the following contents 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" # This loads NVM Shut down the terminal and run the source ~/.zshrc commandCopy the code