nvm (for windows )
I have downloaded the nvm-setup and installed it, but whenever it runs it gives an error message.
I've tried to reinstall the nvm, reset the PATH environment variable and install version 1.1.6, and non of it seems to be working.
NVM_HOME points to my nvm file correctly and it's in the PATH.
C:\Users>nvm --version
Running version 1.1.7.
C:\Users>nvm list
12.3.1
C:\Users>nvm use 12.3.1
exit status 1: 'D:\Program' ���O�����Υ~���R�O�B�i���檺�{���Χ妸�ɡC
nvm (for windows https://github./coreybutler/nvm-windows)
I have downloaded the nvm-setup and installed it, but whenever it runs it gives an error message.
I've tried to reinstall the nvm, reset the PATH environment variable and install version 1.1.6, and non of it seems to be working.
NVM_HOME points to my nvm file correctly and it's in the PATH.
C:\Users>nvm --version
Running version 1.1.7.
C:\Users>nvm list
12.3.1
C:\Users>nvm use 12.3.1
exit status 1: 'D:\Program' ���O�����Υ~���R�O�B�i���檺�{���Χ妸�ɡC
Share
Improve this question
edited May 28, 2019 at 14:11
huha
4,2653 gold badges31 silver badges50 bronze badges
asked May 28, 2019 at 13:34
啊鹿Dizzyi啊鹿Dizzyi
1,0587 silver badges16 bronze badges
2
- I see a string of unprintable characters above. Is that just me - is there an actual error message there? Can you translate it please? – Rup Commented May 28, 2019 at 13:40
- Do you have a file or folder called "D:\Program"? I assume that's meant to be "Program Files" but something is breaking parsing the path. – Rup Commented May 28, 2019 at 13:43
3 Answers
Reset to default 2This happend when you install nvm in a directory that have spaces in the name, for example: C:\Program Files
Change the install directory for nvm and it solved.
In my case, I also had to install the node in another location without spaces in path
C:\Program Files\nodejs -> C:\nodejs
Try cmd with administrator privileges