@@ -197,7 +197,7 @@ func getVersion(version string, cpuarch string, localInstallsOnly ...bool) (stri
197
197
}
198
198
199
199
if version == "" {
200
- return "" , cpuarch , errors .New ("Invalid version." )
200
+ return "" , cpuarch , errors .New ("A version argument is required but missing ." )
201
201
}
202
202
203
203
// If user specifies "latest" version, find out what version is
@@ -212,7 +212,7 @@ func getVersion(version string, cpuarch string, localInstallsOnly ...bool) (stri
212
212
if version == "newest" {
213
213
installed := node .GetInstalled (env .root )
214
214
if len (installed ) == 0 {
215
- return version , "" , errors .New ("No versions of node.js found. Try installing the latest by typing nvm install latest" )
215
+ return version , "" , errors .New ("No versions of node.js found. Try installing the latest by typing nvm install latest. " )
216
216
}
217
217
218
218
version = installed [0 ]
@@ -449,7 +449,7 @@ func uninstall(version string) {
449
449
} else if strings .ToLower (version ) == "newest" {
450
450
installed := node .GetInstalled (env .root )
451
451
if len (installed ) == 0 {
452
- fmt .Println ("No versions of node.js found. Try installing the latest by typing nvm install latest" )
452
+ fmt .Println ("No versions of node.js found. Try installing the latest by typing nvm install latest. " )
453
453
return
454
454
}
455
455
@@ -916,7 +916,7 @@ func useArchitecture(a string) {
916
916
if a == "32" || a == "64" {
917
917
env.arch = a
918
918
saveSettings()
919
- fmt.Println("Set to "+a+"-bit mode")
919
+ fmt.Println("Set to "+a+"-bit mode. ")
920
920
} else {
921
921
fmt.Println("Cannot set architecture to "+a+". Must be 32 or 64 are acceptable values.")
922
922
}
0 commit comments