mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 18:25:52 +08:00 
			
		
		
		
	Make sure nvm clear-cache clears the versions directory as well.
				
					
				
			This commit is contained in:
		
							
								
								
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -782,7 +782,7 @@ nvm() { | |||||||
|       npm install -g --quiet $INSTALLS |       npm install -g --quiet $INSTALLS | ||||||
|     ;; |     ;; | ||||||
|     "clear-cache" ) |     "clear-cache" ) | ||||||
|       rm -f $NVM_DIR/v* 2>/dev/null |       rm -f $NVM_DIR/v* "$(nvm_version_dir)" 2>/dev/null | ||||||
|       echo "Cache cleared." |       echo "Cache cleared." | ||||||
|     ;; |     ;; | ||||||
|     "version" ) |     "version" ) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user