mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 10:15:53 +08:00 
			
		
		
		
	Fix some logic errors in the new "merged node" code path.
This commit is contained in:
		
							
								
								
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -946,7 +946,7 @@ nvm_install_merged_node_binary() { | ||||
|   local REINSTALL_PACKAGES_FROM | ||||
|   REINSTALL_PACKAGES_FROM="$3" | ||||
|  | ||||
|   if nvm_is_merged_node_version "$VERSION" || nvm_is_iojs_version "$VERSION"; then | ||||
|   if ! nvm_is_merged_node_version "$VERSION" || nvm_is_iojs_version "$VERSION"; then | ||||
|     echo 'nvm_install_merged_node_binary requires a node version v4.0 or greater.' >&2 | ||||
|     return 10 | ||||
|   fi | ||||
| @@ -1419,7 +1419,7 @@ nvm() { | ||||
|       if [ "_$NVM_OS" = "_freebsd" ]; then | ||||
|         # node.js and io.js do not have a FreeBSD binary | ||||
|         nobinary=1 | ||||
|       elif [ "_$NVM_OS" = "_sunos" ] && [ "$NVM_IOJS" = true ] || [ "$NVM_NODE_MERGED" = true ]; then | ||||
|       elif [ "_$NVM_OS" = "_sunos" ] && ([ "$NVM_IOJS" = true ] || [ "$NVM_NODE_MERGED" = true ]); then | ||||
|         # io.js does not have a SunOS binary | ||||
|         nobinary=1 | ||||
|       fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user