node.jsnvm-windows

What root should be used with Node Version Manager for Windows?


When I installed, it defaulted the root where it stores the different versions of Node as "C:\Documents and Settings(my name)\Application Data\nvm". I successfully installed version 0.12.4 through the command prompt, but now when I type "nvm use 0.12.4" it gives an error message: "Exit Status 1: C:\Documents is not recognized as an internal or external command, operable program, or batch file." So I gather that it doesn't like the blank spaces in the root path. I'm going to uninstall NVM and re-install specifying a different root during the install. Is there a different root directory that's generally used with NVM for Windows, or does it really matter, just as long as there are no blank spaces in the path?


Solution

  • Here's an open issue with this problem: https://github.com/coreybutler/nvm-windows/issues/41

    looks like it might get fixed soon, but until then, you can solve the problem yourself by editing your settings.txt

    root: C:\DOCUME~1\<yourname>\...etc...
    path: ...etc...
    

    To get the correct path names without spaces, go to the parent directory and type dir /x (only works in cmd.exe, not powershell.)