nvm-windows
nvm-windows copied to clipboard
Arm64
Support windows-arm64.
This PR is stale because it has been open 45 days with no activity.
This PR is stale because it has been open 45 days with no activity.
I built/tested this version, there's an error in the version check logic preventing the install of the latest ARM64 (22.5.1) version:
As currently written, for the latest version (22.5.1), it passes the main version check, but then fails the minor version check since the value of minor is 5 which is lower than 9.
func IsNodeArm64bitAvailable(v string) bool {
if v == "latest" {
return true
}
// Anything below version 8 doesn't have a 64 bit version
vers := strings.Fields(strings.Replace(v, ".", " ", -1))
main, _ := strconv.ParseInt(vers[0], 0, 0)
minor, _ := strconv.ParseInt(vers[1], 0, 0)
fmt.Println("main "+ strconv.FormatInt(main,10) + " minor "+strconv.FormatInt(minor,10))
if main < 19 {
return false
}
if minor < 9{
return false
}
// TODO: fixme. Assume a 64 bit version exists
return true
}