mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Actually try to install from source when the error message says "binary failed, trying source".
This commit is contained in:
		
							
								
								
									
										15
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -1247,12 +1247,15 @@ nvm() { | |||||||
|         elif [ "$NVM_IOJS" != true ] && nvm_install_node_binary "$VERSION" "$REINSTALL_PACKAGES_FROM"; then |         elif [ "$NVM_IOJS" != true ] && nvm_install_node_binary "$VERSION" "$REINSTALL_PACKAGES_FROM"; then | ||||||
|           NVM_INSTALL_SUCCESS=true |           NVM_INSTALL_SUCCESS=true | ||||||
|         fi |         fi | ||||||
|       elif [ "$NVM_IOJS" = true ]; then |       fi | ||||||
|         # nvm_install_iojs_source "$VERSION" "$ADDITIONAL_PARAMETERS" |       if [ "$NVM_INSTALL_SUCCESS" != true ]; then | ||||||
|         echo "Installing iojs from source is not currently supported" >&2 |         if [ "$NVM_IOJS" = true ]; then | ||||||
|         return 105 |           # nvm_install_iojs_source "$VERSION" "$ADDITIONAL_PARAMETERS" | ||||||
|       elif nvm_install_node_source "$VERSION" "$ADDITIONAL_PARAMETERS"; then |           echo "Installing iojs from source is not currently supported" >&2 | ||||||
|         NVM_INSTALL_SUCCESS=true |           return 105 | ||||||
|  |         elif nvm_install_node_source "$VERSION" "$ADDITIONAL_PARAMETERS"; then | ||||||
|  |           NVM_INSTALL_SUCCESS=true | ||||||
|  |         fi | ||||||
|       fi |       fi | ||||||
|  |  | ||||||
|       if [ "$NVM_INSTALL_SUCCESS" = true ] && nvm use "$VERSION"; then |       if [ "$NVM_INSTALL_SUCCESS" = true ] && nvm use "$VERSION"; then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user