Browse Source

Re-run nvm ls-remote after using a mirror

Otherwise we're left with data from the mirror cached when we run nvm ls
yarn-unset-notice
Luke Childs 8 years ago
parent
commit
428331fce6
  1. 2
      zsh-nvm.plugin.zsh

2
zsh-nvm.plugin.zsh

@ -179,9 +179,11 @@ _zsh_nvm_install_wrapper() {
case $2 in
'rc')
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/rc/ nvm install node
nvm ls-remote > /dev/null 2>&1
;;
'nightly')
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/download/nightly/ nvm install node
nvm ls-remote > /dev/null 2>&1
;;
*)
_zsh_nvm_nvm "$@"

Loading…
Cancel
Save