Linux – ZSH npm/node/nvm command not found after installing OhMyZSH

bashlinuxterminalzsh

After installing OhMyZSH on my Linux machine, previously installed nvm, node and npm are not found. Thanks for the help.

This command "source ~/.nvm/nvm.sh" allows me to make it work, however when I restart terminal or open new tab terminal says that commands are not found… Config '~/.zshrc' file:

# If you come from bash you might have to change your $PATH.
 export PATH=$HOME/bin:/usr/local/bin:$PATH

# Path to your oh-my-zsh installation.
 export ZSH="/home/jurr/.oh-my-zsh"

Best Answer

Added this line to ./zshrc file. Working great. Original source: https://github.com/lukechilds/zsh-nvm

export NVM_DIR=~/.nvm
 [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
Related Question