Skip to content

"nvm use" (without params) returns a bizarre message #318

@peternann

Description

@peternann

Please consider this suggestion:

My Environment

  • [*] Windows 7 or below (not truly supported due to EOL - see wiki for details)
    (Wow, didn't know Win7 was not supported...)

I'm using NVM4W version:

  • [* ] 1.1.6

Expected Behavior

I actually expected "nvm use" (without parameters) to tell me what Node was in in use.
In fact, I mistook the current output of this command to indicate that nvm was knotted and broken in some way, and did a complete re-install of nvm (Silly me).

I accept that my expectations was incorrect on both counts, so take this as a suggestion:

It seems like a good idea to me that "npm use" (without parameters) should probably just behave precisely like "nvm list", Thusly:

> nvm use
  * 6.11.4 (Currently using 64-bit executable)

So that the user is informed of BOTH the Node in use, and other options available (if any - I have none).

Actual Behavior

> nvm use
.0.0
node v.0.0 (64-bit) is not installed.

Which isn't really helpful in any way, and looks quite bizarre.

Steps to reproduce the problem:

Install nvm and a node as usual, then type "nvm use" and hit enter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions