mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	[New] nvm install: add --latest-npm option to automatically try to upgrade to the latest working version of npm.
				
					
				
			- also add `nvm install-latest-npm` top-level command
This commit is contained in:
		
							
								
								
									
										12
									
								
								test/installation_node/install with --latest-npm
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								test/installation_node/install with --latest-npm
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| #!/bin/sh | ||||
|  | ||||
| set -ex | ||||
|  | ||||
| die () { echo "$@" ; exit 1; } | ||||
|  | ||||
| set +e # todo: fix | ||||
| \. ../../nvm.sh | ||||
| set -e | ||||
|  | ||||
| NVM_DEBUG=1 nvm install --latest-npm 4.2.2 \ | ||||
|   | grep 'Attempting to upgrade to the latest working version of npm...' || die 'did not call through to nvm_install_latest_npm' | ||||
		Reference in New Issue
	
	Block a user