-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Getting "exit status 1: 'C:\Program' is not recognized as an internal or external command" when switching versions #168
Comments
The problem is with the spaces in URL(C:\Program Files). Try to install the nvm directly in C:/ or in other folder without spaces in the PATH. |
Yes, but that is :)). |
Duplicate of #41. |
windows
or
|
One of my users is having the same problem. However, moving nvm to another folder doesn't work for us, because our security policies don't allow us to run applications outside of Program Files or Program Files (x86) folders. It would be helpful if the code allowed it to run in a directory with spaces. |
Change root directory for version of nodes (without spaces) |
Issue is old but for anyone that lands here you can reinstall nvm as mentioned above, |
You have changed the default path during installation. |
Yes, That's work thanks :) |
So if I put a space in my name when I got the computer, I'm just screwed forever, huh? |
a better solution is : #405
|
@bhupender005 that's greate, better than all the other answers, thanks! |
@bhupender005 Thanks for your neat risk-free solution |
If you manually move the nvm folder to for instance to Update the environment variable( Once the environment variables are updated and you restart your terminal/command prompt, nvm should work, but the settings are still attached to the previous location, which will cause an error if you attempt to Running Otherwise you will get errors saying that nvm is referencing the old path. UPDATE: once that is done your symlink is now corrupt You have to manually update the symlink by right-clicking the properties(of the symlink at: then restart the terminal/cmd and
That was not fun. |
@
@bhupender005 Thank you so much for this solution. Its working 🔥 |
|
this one solved my problem. |
Jeus, I am testing here and there. Finally found out that the problem is space. Thanks @lutherjohnworks |
@bhupender005 Thankyou for your neat and clear solution .My issue was solved without any issue following your steps. |
My issue was solved. Thanks! |
Spacing in the path is the problem you can run
then copy the contents to another folder without any spaces on the path after that move the nvm root to that folder by running the command below (with full path)
|
Thank you. I moved my nvm up to However it wasn't until i ran |
Also if you are facing an error with the path, just write the path in single quotes. |
Run git bash or cmd administrator. It worked for me. |
Xoá node trên máy đi rồi cài lại từ đầu là được |
Bruh, after trying many ways, this is the one for me. |
I have installed v1.1.0 in "C:\Program Files\nvm". All good but when I'm trying to switch to a version I have installed I get:
The text was updated successfully, but these errors were encountered: