mirror of
				https://github.com/lukechilds/zsh-nvm.git
				synced 2025-10-30 14:46:28 +08:00 
			
		
		
		
	Re-run nvm ls-remote after using a mirror
Otherwise we're left with data from the mirror cached when we run nvm ls
This commit is contained in:
		
							parent
							
								
									6adee8c2d2
								
							
						
					
					
						commit
						cefc60931b
					
				@ -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…
	
		Reference in New Issue
	
	Block a user