Skip to content

nvm install lts panic #1064

Closed
Closed
@bouvdog

Description

What happened?

nvm install lts returns ''panic: runtime error: index out of range[0] with length 0"
nvm list returns "no installations recognized"

What did you expect to happen?

First command, to install the latest version of node
Second command, to list node versions

Version

1.1.11 or newer (Default)

Which version of Windows?

Windows 11+

Which locale?

English (Default)

Which shell are you running NVM4W in?

PowerShell

User Permissions?

Administrative Privileges, Elevated

Is Developer Mode enabled?

No (Default)

Relevant log/console output

PS C:\WINDOWS\system32> nvm debug
Running NVM for Windows with administrator privileges.

Administrator: Windows PowerShell
NVM4W Version:      1.1.11
NVM4W Path:         C:\Users\Kevin\AppData\Roaming\nvm\nvm.exe
NVM4W Settings:     C:\Users\Kevin\AppData\Roaming\nvm\settings.txt
NVM_HOME:           C:\Users\Kevin\AppData\Roaming\nvm
NVM_SYMLINK:        C:\Program Files\nodejs
Node Installations: C:\Users\Kevin\AppData\Roaming\nvm

Active Node.js Version: none
(run "nvm use <version>" to activate a version)

No problems detected.

Find help at https://github.com/coreybutler/nvm-windows/wiki/Common-Issues
PS C:\WINDOWS\system32> nvm list

No installations recognized.
PS C:\WINDOWS\system32> nvm install lts
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
main.getLTS(...)
        C:/Users/corey/OneDrive/Documents/workspace/libraries/oss/coreybutler/nvm-windows/src/nvm.go:1141
main.getVersion({0xa0140b0, 0x3}, {0x10b6b0d, 0x2}, {0x0, 0x0, 0x0})
        C:/Users/corey/OneDrive/Documents/workspace/libraries/oss/coreybutler/nvm-windows/src/nvm.go:225 +0x73d
main.install({0xa0140b0, 0x3}, {0x10b6b0d, 0x2})
        C:/Users/corey/OneDrive/Documents/workspace/libraries/oss/coreybutler/nvm-windows/src/nvm.go:290 +0x255
main.main()
        C:/Users/corey/OneDrive/Documents/workspace/libraries/oss/coreybutler/nvm-windows/src/nvm.go:94 +0xaf7
PS C:\WINDOWS\system32>

Debug Output

PS C:\WINDOWS\system32> nvm debug
Running NVM for Windows with administrator privileges.

Administrator: Windows PowerShell
NVM4W Version:      1.1.11
NVM4W Path:         C:\Users\Kevin\AppData\Roaming\nvm\nvm.exe
NVM4W Settings:     C:\Users\Kevin\AppData\Roaming\nvm\settings.txt
NVM_HOME:           C:\Users\Kevin\AppData\Roaming\nvm
NVM_SYMLINK:        C:\Program Files\nodejs
Node Installations: C:\Users\Kevin\AppData\Roaming\nvm

Active Node.js Version: none
(run "nvm use <version>" to activate a version)

No problems detected.

Find help at https://github.com/coreybutler/nvm-windows/wiki/Common-Issues

Anything else?

OS Name Microsoft Windows 11 Pro Insider Preview
Version 10.0.23585 Build 23585

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions