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
Not working if installation path contains spaces #617
Comments
Yes, I too am getting the same issue :( |
Same :( |
Hey, can you pls tell me how u did that i am having the same issue. Thanks in advance |
Sure, just use |
Oh ok Thanks. |
As the default location "Program Files" contains a space and my "User Name" contained a space I couldn't avoid this problem. Workaround===== Installation folder
===== settings.txt
===== Windows Environment settings ===== Test usage
|
@Laserbase Symbolic links to the rescue! Great idea, that workaround worked just fine for me. I'll add though that just changing the environmental variables to the symlink didn't work. I had to specifically use Pitfall #2 I ran into: Once I manually (re)created |
My answer from 2015 Still works And I think its the simplest fix. in AppData\Roaming\nvm there is a settings.txt file that has your username with the space. If you run the command from that ticket it will give you a formatted path without a space you can replace in settings.txt In my case settings.txt has root: C:\Users\MICHAE~1\AppData\Roaming\nvm |
Hi For anyone that would be have this problem. I can say that, in my case i discover that problem is happening when i'm running the installer from a different partition to windows was installed. So when i reinstall using nvm-setup.exe from C: partition, all is installed an npm is finded without problems!!, no need to modify enviroment variables in my win10. I know that this looks crazy, but i think that this can be usefull to developers resolve this issue, or anyone need help for this now. bye. |
Closing as duplicate, resolved in 1.1.8. |
NVM4W version: 1.1.7
This is duplicated from #611, just trying to provide some details by filling the form.
My Environment
Windows 10 Pro, pre-installed in Portuguese, currently in English
Expected Behavior
After running
nvm install 12.20.2
andnvm use 12.20.2
I should be able to usenpm
andnode
.Actual Behavior
When I try to run
nvm use 12.20.2
system throws an error that has the string of the pathname, being the last part the directory that has space in its name.Steps to reproduce the problem:
nvm install some-version
nvm use some-version
, this command will failThe text was updated successfully, but these errors were encountered: