Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]: spaces in the installation path of nvm lead to errors using it #1104

Open
PurpleMagick opened this issue Feb 21, 2024 · 2 comments
Open

Comments

@PurpleMagick
Copy link

What happened?

Attempting to change the node versions with nvm use there is an error because of the space in the installation directory.

Note that nvm install does work without producing errors. Only nvm use shows an issue.

What did you expect to happen?

Switching the used version of Node should work even if there are spaces in the path. I found issue #41 which is closed (and issue #168 which is a duplicate of it) which claims this was addressed. Te common issues page says spaces in path names should work as of 1.1.8

Version

1.1.11 or newer (Default)

Which version of Windows?

Windows 10 (Default)

Which locale?

English (Default)

Which shell are you running NVM4W in?

PowerShell

User Permissions?

Standard Use, Non-Elevated

Is Developer Mode enabled?

No (Default)

Relevant log/console output

PS C:\> nvm use 20
exit status 1: 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

exit status 1: 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
PS C:\> nvm --version
1.1.11
PS C:\> $env:NVM_HOME
C:\Program Files\nvm

Debug Output

PS C:\> nvm debug
<user> is not using admin or elevated rights.

PowerShell 7 (x64)
Windows Developer Mode: UNKNOWN (user cannot read registry)

NVM4W Version:      1.1.11
NVM4W Path:         C:\Program Files\nvm\nvm.exe
NVM4W Settings:     C:\Program Files\nvm\settings.txt
NVM_HOME:           C:\Program Files\nvm
NVM_SYMLINK:        C:\Program Files\nodejs
Node Installations: C:\Program Files\nvm

Active Node.js Version: v16.20.1

No problems detected.

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

Anything else?

No response

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale Stale label Mar 23, 2024
@JJPasin
Copy link

JJPasin commented Mar 28, 2024

Any update ?

@github-actions github-actions bot removed the Stale Stale label Mar 29, 2024
@github-actions github-actions bot added the Stale Stale label Apr 28, 2024
@coreybutler coreybutler removed the Stale Stale label Apr 29, 2024
Repository owner deleted a comment from github-actions bot Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants