Skip to content

Spaces in installation path are properly handled by nvm install, but not by nvm use #932

Closed
@janerjak

Description

@janerjak

Issue:
When installing nvm-windows using the nvm-setup.exe to a path with spaces, e.g. "C:\Programs X", the command nvm install latest successfully runs. nvm use latest will return a non-zero exit-code and produce the output
exit status 1: 'C:\Programs' is not recognized as an internal or external command, operable program or batch file.

How To Reproduce:

  1. Install nvm using nvm-setup.exe (version 1.1.1.0, launched with admin privileges) to a path containing spaces
  2. Open a terminal window and type nvm install latest (this should work)
  3. Type nvm use latest
  4. See error

Expected Behavior:
nvm selecting the correct version

Screenshots:
image

Notes: The screenshot is taken from a terminal running MINGW64. The bug is also present in Command Line (Windows 11) and Power Shell.

Desktop:

  • OS: Windows 11 22H2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions