Skip to content

Error installing 'latest' node version #955

Description

@oracleoftroy

Issue:

I can't install the latest version of node, either via latest or via an explicit version number. On the surface it looks like #942 and might be the same or closely related, but the error message I'm getting is slightly different than what I see in that thread.

How To Reproduce:

Using a fresh install using nvm-setup.exe from releases (first time trying this program, so no previous installs). Node was previously manually installed, but I uninstalled it before installing nvm.

> nvm version
1.1.10


> nvm install latest
panic: runtime error: index out of range [3] with length 3

goroutine 1 [running]:
main.checkVersionExceedsLatest({0x11da80e0, 0x6})
        C:/Users/corey/OneDrive/Documents/workspace/libraries/oss/coreybutler/nvm-windows/src/nvm.go:875 +0x220
main.install({0x11c1a0b0, 0x6}, {0x909d26, 0x2})
        C:/Users/corey/OneDrive/Documents/workspace/libraries/oss/coreybutler/nvm-windows/src/nvm.go:308 +0x337
main.main()
        C:/Users/corey/OneDrive/Documents/workspace/libraries/oss/coreybutler/nvm-windows/src/nvm.go:87 +0xaea


> nvm list available

|   CURRENT    |     LTS      |  OLD STABLE  | OLD UNSTABLE |
|--------------|--------------|--------------|--------------|
|    19.9.0    |   18.15.0    |   0.12.18    |   0.11.16    |
|    19.8.1    |   18.14.2    |   0.12.17    |   0.11.15    |
|    19.8.0    |   18.14.1    |   0.12.16    |   0.11.14    |
|    19.7.0    |   18.14.0    |   0.12.15    |   0.11.13    |
|    19.6.1    |   18.13.0    |   0.12.14    |   0.11.12    |
|    19.6.0    |   18.12.1    |   0.12.13    |   0.11.11    |
|    19.5.0    |   18.12.0    |   0.12.12    |   0.11.10    |
|    19.4.0    |   16.20.0    |   0.12.11    |    0.11.9    |
|    19.3.0    |   16.19.1    |   0.12.10    |    0.11.8    |
|    19.2.0    |   16.19.0    |    0.12.9    |    0.11.7    |
|    19.1.0    |   16.18.1    |    0.12.8    |    0.11.6    |
|    19.0.1    |   16.18.0    |    0.12.7    |    0.11.5    |
|    19.0.0    |   16.17.1    |    0.12.6    |    0.11.4    |
|   18.11.0    |   16.17.0    |    0.12.5    |    0.11.3    |
|   18.10.0    |   16.16.0    |    0.12.4    |    0.11.2    |
|    18.9.1    |   16.15.1    |    0.12.3    |    0.11.1    |
|    18.9.0    |   16.15.0    |    0.12.2    |    0.11.0    |
|    18.8.0    |   16.14.2    |    0.12.1    |    0.9.12    |
|    18.7.0    |   16.14.1    |    0.12.0    |    0.9.11    |
|    18.6.0    |   16.14.0    |   0.10.48    |    0.9.10    |

This is a partial list. For a complete list, visit https://nodejs.org/en/download/releases


> nvm install 19.9.0
panic: runtime error: index out of range [3] with length 3

goroutine 1 [running]:
main.checkVersionExceedsLatest({0x11c1a0b0, 0x6})
        C:/Users/corey/OneDrive/Documents/workspace/libraries/oss/coreybutler/nvm-windows/src/nvm.go:875 +0x220
main.install({0x11c1a0b0, 0x6}, {0x909d26, 0x2})
        C:/Users/corey/OneDrive/Documents/workspace/libraries/oss/coreybutler/nvm-windows/src/nvm.go:308 +0x337
main.main()
        C:/Users/corey/OneDrive/Documents/workspace/libraries/oss/coreybutler/nvm-windows/src/nvm.go:87 +0xaea


> nvm install 19.8.1
Downloading node.js version 19.8.1 (64-bit)...
Extracting node and npm...
Complete
npm v9.5.1 installed successfully.


Installation complete. If you want to use this version, type

nvm use 19.8.1

Expected Behavior:

nvm install latest or nvm install 19.9.0 would install the current latest version reported by the app (19.9.0).

As shown above, the previous version (19.8.1) worked fine, as did nvm install lts. It seems to be an issue specific to the latest nodejs version. The version nvm reports matches what Nodejs's website claims is the latest. I did not try installing any other versions aside from latest, lts and the two explicit version numbers above.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions