Skip to content

"nvm could not be found" when user name has umlaut or non-ascii character #726

Description

@heneds

Issue:
After a fresh installation of nvm the application does not work but fails with the error message
"C:\Users_USERNAME_\AppData\Roaming\nvm could not be found or does not exist. Exiting."
This happens when USERNAME contains a non-ascii character. In the error message these characters are replaced with �.

How To Reproduce:

  1. Create or use an Windows account with umlauts or non-ascii characters in the user name (and more importantly in the name of the user folder)
  2. Install nvm.
  3. If the installer asks to handle an existing node installation, answer yes
  4. Run "nvm list"

Expected Behavior:
Expecting to see a list of node versions.

Workaround:
It works properly if you correct the path in settings.txt (while keeping the UTF-8 encoding)

Desktop:
Windows 11

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions