error -bash: nvm: command not found install node js using nvm solved

Опубликовано: 13 Март 2025
на канале: Tech Nursery
225
1

-bash: nvm: command not found



1. curl o https://raw.githubusercontent.com/nvm... | bash






2. source ~/.bashrc # for Bash users
or
source ~/.zshrc # for Zsh users



3. nvm --version


-------------------------------------------------------------------------------------------------------
If the error still occurs, manually add NVM to your shell profile. Open your shell configuration file (~/.bashrc, ~/.zshrc, or ~/.bash_profile) and add the following line

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm




source ~/.bashrc
or
source ~/.zshrc depending on your shell