Closed snowman closed 5 years ago
Can you try commenting out where you're sourcing OMZ and source zsh-nvm
directly?
So in .zshrc
:
plugins=(
git
zsh-nvm
)
#source $ZSH/oh-my-zsh.sh
source ~/.oh-my-zsh/custom/plugins/zsh-nvm/zsh-nvm.plugin.zsh
Then open a new session and try:
nvm upgrade
same result, not work
i don't know whether this is relevant:
# FILE: ~/.zshrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
It looks like you are loading nvm
twice, once directly and once via zsh-nvm
.
Can you comment those lines out and only load via zsh-nvm
.
it works like a charm, thanks 👍
It looks like you are loading
nvm
twice, once directly and once viazsh-nvm
.Can you comment those lines out and only load via
zsh-nvm
.
It works for me too, thanks.
After restart terminal: