If this is a question about how to use NVM4W, please use stackoverflow instead.
If this is an issue regarding antivirus, make sure you search the existing issues first.
[ ] Windows Server 2016
[ ] My Windows installation is non-English.
Fill me in...
exit status 1: 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Windows files systems allows spaces... in paths.. seems to be the issue.
Did you try to install on a different location?
It looks like some quotes are missing in the bat files.
Solved it by installing it in other Destination
folder and the Set Node.js Symlink
path does not contain any spaces
Edit file
C:\Users\User Name\AppData\Roaming\nvm\settings.txt
Change
root: C:\Users\User Name\AppData\Roaming\nvm
path: C:\Program Files\nodejs
To
root: C:\Users\UserNa~1\AppData\Roaming\nvm
path: C:\Progra~1\nodejs
The idea is to remove spaces from User Name
to UserName
and delete last letters so that with ~1
at the end there was 8 letters.
So
UserName~1
- 10 letters
UserNa~1
- 8 letters
That solved my problem.
It seems nvm does not support spaces in its own configuration file that it makes by itself by default.
Many users have spaces in their windows account name.
This is a BUG.
Also this superuser answer is valuable as work-around supplementary.
I ran into this with the latest version and the only way I could get it to work was install to C:\nvm and symlink at C:\nodejs
Most helpful comment
Edit file
Change
To
The idea is to remove spaces from
User Name
toUserName
and delete last letters so that with~1
at the end there was 8 letters.So
UserName~1
- 10 lettersUserNa~1
- 8 lettersThat solved my problem.
It seems nvm does not support spaces in its own configuration file that it makes by itself by default.
Many users have spaces in their windows account name.
This is a BUG.