mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2026-01-16 04:06:00 +08:00
Added support for vX.X.X and removed option to open prompt after install.
This commit is contained in:
@@ -168,9 +168,11 @@ func install(version string, cpuarch string) {
|
||||
version = reg.ReplaceAllString(re.FindString(content),"")
|
||||
}
|
||||
|
||||
version = cleanVersion(version)
|
||||
|
||||
if CheckVersionExceedsLatest(version) {
|
||||
fmt.Println("Node.js v"+version+" is not yet released or available.")
|
||||
return
|
||||
fmt.Println("Node.js v"+version+" is not yet released or available.")
|
||||
return
|
||||
}
|
||||
|
||||
if cpuarch == "64" && !web.IsNode64bitAvailable(version) {
|
||||
@@ -311,8 +313,6 @@ func use(version string, cpuarch string) {
|
||||
|
||||
cpuarch = arch.Validate(cpuarch)
|
||||
|
||||
re := regexp.MustCompile("\\d+.\\d+.\\d+")
|
||||
|
||||
version = cleanVersion(version)
|
||||
|
||||
// Make sure the version is installed. If not, warn.
|
||||
|
||||
Reference in New Issue
Block a user