Skip to content

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

@GhostInTheMachines

Description

@GhostInTheMachines

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions