Install nvm on Mac OSX

suggest change

INSTALLATION PROCESS

You can install Node Version Manager using git, curl or wget. You run these commands in Terminal on Mac OSX.

curl example:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash

wget example:

wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.8/install.sh | bash

TEST THAT NVM WAS PROPERLY INSTALLED

Close and reopen Terminal, then run nvm. Current macOS uses zsh, so the installer writes ~/.zshrc. If the shell says nvm: command not found, confirm that file sources nvm, then open a new terminal. The steps below are for bash.

If you still get nvm: command not found, try the following:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
source ~/.nvm/nvm.sh

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents