3 ms·
Ahhh, zsh-nvm requires that nvm has been installed via git. Although it shouldn't be trying to install over your previous installation, it checks if nvm exists
by lukechilds 10y ago
Ahhh, zsh-nvm requires that nvm has been installed via git.
Although it shouldn't be trying to install over your previous installation, it checks if nvm exists first with `[[ ! -f "$NVM_DIR/nvm.sh" ]]`.
Out of interest what does: `[[ ! -f "$NVM_DIR/nvm.sh" ]] && echo "nvm doesn't exist" || echo "nvm exists"` return?
If you wanna try it out you could backup your "$NVM_DIR/versions" folder and restore it. That holds all your node installs and global modules.
- drinchev 10y agoλ ~ ◆ [[ ! -f "$NVM_DIR/nvm.sh" ]] && echo "nvm doesn't exist" || echo "nvm exists" nvm doesn't exist λ ~ ◆ Yeah, but tomorrow I'm GMT+2 :D
- lukechilds 10y agoStrange... Is it a symlink or something? Does `ls "$NVM_DIR"` list nvm.sh anywhere?
- drinchev 10y agoNo :( I've opened an issue, because I think we're polluting HN https://github.com/lukechilds/zsh-nvm/issues/11 https://github.com/lukechilds/zsh-nvm/issues/11