Closed
Description
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:
- Install nvm using nvm-setup.exe (version 1.1.1.0, launched with admin privileges) to a path containing spaces
- Open a terminal window and type
nvm install latest
(this should work) - Type
nvm use latest
- See error
Expected Behavior:
nvm selecting the correct version
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