mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Adding some helpful output to nvm copy-packages
				
					
				
			This commit is contained in:
		
							
								
								
									
										1
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -850,6 +850,7 @@ nvm() { | ||||
|         INSTALLS=$(nvm use "$VERSION" > /dev/null && npm list -g --depth=0 | tail -n +2 | \grep -o -e ' [^@]*' | cut -c 2- | \grep -v npm | xargs) | ||||
|       fi | ||||
|  | ||||
|       echo "Copying global packages from $VERSION..." | ||||
|       echo "$INSTALLS" | xargs npm install -g --quiet | ||||
|     ;; | ||||
|     "clear-cache" ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user