How to Fix “nvm command not found” in bash on macOS

If your terminal outputs this when you try to use nvm:

-bash: nvm: command not found

The following command will load nvm into your current shell:

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

Depending on your setup there are different ways to solve the problem.

Here’s a list of different solutions.


Has this been helpful to you?

You can support my work by sharing this article with others, or perhaps buy me a cup of coffee 😊

Kofi

Share & Discuss on