Fix 32-bit message

Show message when requesting a 64-bit version that is only installed as
32-bit. Mirroring what is shown when requesting a 32-bit version that is
only installed as 64-bit.
This commit is contained in:
MizardX
2016-09-12 16:56:37 +02:00
committed by Corey Butler
parent a6cc90d9be
commit d85935f2e1

View File

@@ -324,8 +324,8 @@ func use(version string, cpuarch string) {
}
}
if cpuarch == "64" {
if node.IsVersionInstalled(env.root,version,"64") {
fmt.Println("\nDid you mean node v"+version+" (64-bit)?\nIf so, type \"nvm use "+version+" 64\" to use it.")
if node.IsVersionInstalled(env.root,version,"32") {
fmt.Println("\nDid you mean node v"+version+" (32-bit)?\nIf so, type \"nvm use "+version+" 32\" to use it.")
}
}
return