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

NVM breaks on SPACES in a file path for Windows 10 #657

Closed
wally96334 opened this issue Sep 4, 2021 · 6 comments
Closed

NVM breaks on SPACES in a file path for Windows 10 #657

wally96334 opened this issue Sep 4, 2021 · 6 comments

Comments

@wally96334
Copy link

After installation, I tried to run "nvm use" for the latest version of Node.

There is a SPACE in the path, and the app broke.
It does not take spaces into account for a file path.


C:\a01_temp>nvm install latest
Downloading node.js version 16.8.0 (64-bit)...
Complete
Creating C:\Users\Ron Anderson\AppData\Roaming\nvm\temp

Downloading npm version 7.21.0... Complete
Installing npm v7.21.0...

Installation complete. If you want to use this version, type

nvm use 16.8.0

C:\a01_temp>nvm use 16.8.0
exit status 1: 'C:\Users\Ron' is not recognized as an internal or external command,
operable program or batch file.


@IMTanuki
Copy link

IMTanuki commented Sep 9, 2021

And...if you grant nvm control of your current release, it moves the nodejs files to the nvm dir, at which point neither the new version nor the original version are accessible. The only solution I found was to completely uninstall nvm, which also uninstalls both nodejs and all global packages - if it doesn't support path names with spaces, why does it let you migrate an existing nodej install to the new dir? Or why doesn't this get picked up in the nvm install process?

@Untitled-png
Copy link

I've got the same issue too

@Untitled-png
Copy link

Untitled-png commented Sep 14, 2021

Well... apparently this goes back a long time... I found this issue from 6 years ago: #41
No idea why it's not fixed yet lol
(I still dunno how to fix it btw so please tell me)

@IMTanuki
Copy link

the only known fix is to completely uninstall nvm (and all versions of node that are controlled by nvm), then reinstall nvm under a dir with no spaces, which is an option during the install. But really, considering that at a minimum, the install could simply issue a warning about the dir name, this is a completely avoidable issue. Considering how long this has been out there, I have to conclude nvm is no longer maintained.

@calumcorrie
Copy link

Not sure how general this answer is but worked for me

@coreybutler
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants