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

User names with spaces seem to break the batch files #480

Closed
5 tasks
GhostInTheMachines opened this issue Oct 23, 2019 · 4 comments
Closed
5 tasks

User names with spaces seem to break the batch files #480

GhostInTheMachines opened this issue Oct 23, 2019 · 4 comments

Comments

@GhostInTheMachines
Copy link

My Environment

  • [x ] Windows 10

I'm using NVM4W version:

  • [ x] 1.1.7

I have already...

  • [x ] read the README to be aware of npm gotchas & antivirus issues.
  • [ x] reviewed the wiki to make sure my issue hasn't already been resolved.
  • [x ] verified I'm using an account with administrative privileges.
  • [x ] searched the issues (open and closed) to make sure this isn't a duplicate.
  • [x ] 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 (Have you tried version 1.1.0+?)
  • 32 or 64 bit support (Have you tried version 1.1.3+?)
  • Character escaping (Have you tried version 1.1.6+?)
  • [x ] A standard shell environment (terminal/powershell)
  • A non-standard shell environment (Cmder, Hyper, Cygwin, git)

Expected Behavior

Expecting to be able to run nvm commands without errors.
Expecting to be able to run node commands without errors
Expecting to be able to run npm commands without errors

Actual Behavior

Fill me in...
nvm install 12.11.1 seems to work correctly with the following response:
Downloading node.js version 12.11.1 (64-bit)...
Complete
Creating C:\Users\Dennis Kimble\AppData\Roaming\nvm\temp

Downloading npm version 6.11.3... Complete
Installing npm v6.11.3...

Installation complete. If you want to use this version, type nvm use 12.11.1

HOWEVER...When nvm use command is run, the following error is displayed:

PS C:\WINDOWS\system32> nvm use 12.11.1
exit status 1: 'C:\Users\Dennis' is not recognized as an internal or external command,
operable program or batch file.

Steps to reproduce the problem:

Fill me in...

  1. Installed nvm using Administrator privileges
  2. Followed prompts, accepting the default installation location
    i.e. C:\Users\Dennis Kimble\AppData\Roaming\nvm\
  3. Installed node version 12.11.1 using the command nvm install 12.11.1
  4. Attempted to run the first nvm use command
@holdsworth
Copy link

+1

@JonasPuchinger
Copy link

#405 (comment)

@273299007
Copy link

#41
When you have installed nvm and nodejs in C:\Program Files just use the following config in settings.txt and it should work.
root: C:\PROGRA1\nvm
path: C:\PROGRA
1\nodejs

@coreybutler
Copy link
Owner

Duplicate of #41, fixed in PR #355.

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

5 participants