mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2025-09-07 22:09:18 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user