Skip to content
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

nvm use down not work while user home directory have space #161

Closed
6 of 17 tasks
liyangdal opened this issue Apr 10, 2016 · 9 comments
Closed
6 of 17 tasks

nvm use down not work while user home directory have space #161

liyangdal opened this issue Apr 10, 2016 · 9 comments

Comments

@liyangdal
Copy link

My Environment

  • Windows 7 or below (not truly supported due to EOL)
  • Windows 8
  • Windows 8.1
  • Windows 10
  • Windows 10 IoT Core
  • Windows Server 2012
  • Windows Server 2012 R2
  • Windows Server 2016
  • My Windows installation is non-English.

I have already...

  • read the README to be aware of npm gotchas & antivirus issues.
  • reviewed the wiki to make sure my issue hasn't already been resolved.
  • verified I'm using an account with administrative privileges.
  • searched the issues (open and closed) to make sure this isn't a duplicate.
  • made sure this isn't a question about how to use NVM for Windows, since gitter is used for questions and comments.

My issue is related to (check only those which apply):

  • settings.txt
  • proxy support
  • 32 or 64 bit support

None of above

Expected Behavior

My home directory is something like C:\Users\xxx yyy\ which have a space between xxx and yyy

Step 1. Installing via installer.
Step 2. nvm install 4.4.2
Step 3. nvm use 4.4.2

Actual Behavior

in Step 3, I got error message like
exit status 1: 'C:\Users\xxx' is not recognized as an internal or external command, operable program or batch file.

Steps to reproduce the problem:

install and use nvm by a user which home directory have a space.

@bookercodes
Copy link

I have the same problem 😢

@bookercodes
Copy link

bookercodes commented Apr 15, 2016

Here's the solution:

  1. Uninstall nvm via the Control Panel
  2. Install nvm via nvm-setup.exe
  3. When prompted, change the install path from C:\Users\AppData\Roaming\nvm to C:\Users\Public\nvm.

Running nvm root should now show C:\Users\Public\nvm and things should just work.

@Ugarz
Copy link

Ugarz commented Apr 16, 2016

Hi there !
Same issue here but I could not fix it. I'm using the casual prompt, and installed cygwin mod.

  1. I uninstalled nvm and node.
  2. Install node (in 64bits with the .msi).
  3. Install nvm for windows replacing my spaced name with Public in the install path.
  4. After my test here what it prompt :
    node

@semi-xi
Copy link

semi-xi commented Apr 23, 2016

the same problem as Ugarz
and when i uninstall all the node before i install the nvm-windows .after that open cmd.ext . it tell me that "erroe open setting.txt : the system canot find the file specified “

@coreybutler
Copy link
Owner

Duplicate of #41.

@fullsteack
Copy link

  1. In cmd, go to your home directory and type dir/x to see the shortened name for this folder
  2. Then replace your user name with this shortened name in the setting.txt
  3. It works

@MdRasheedAhmed
Copy link

  1. In cmd, go to your home directory and type dir/x to see the shortened name for this folder
  2. Then replace your user name with this shortened name in the setting.txt
  3. It works

This Works..Thanks

@meenakshi777
Copy link

It works for me..! Thanks

@arahmanmdmajid
Copy link

  1. In cmd, go to your home directory and type dir/x to see the shortened name for this folder
  2. Then replace your user name with this shortened name in the setting.txt
  3. It works

Work for me too, Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants