Skip to content

Window nvm requires admin permission for use <version> command #3599

@cookietx

Description

@cookietx

Operating system and version:

Windows version 11

nvm debug output:

None

nvm ls output:

None

How did you install nvm?

Windows installer nvm-setup.exe, required assistance from my IT dept windows administrator user to provided credentials to complete the installation.

Note the installation process wanted the nvm directory to be placed under the administrator user's AppData directory. I changed that to place it under my own AppData directory before continuing the installation.

What steps did you perform?

After nvm installation completed, I used the command nvm install to install three different node versions. All successful.

What happened?

After installing three versions of node any attempt to issue the command nvm use results in the request for admin credential to entered. As I do not have admin privilege for my computer, I would have to enter a helpdesk ticket and wait for assistance to use this command.

What did you expect to happen?

I expected the nvm use to set the PATH variable such that the appropriate node version would be accessable without the need for admin privilege. I suspect the use of the command is trying to change the system environment variables, instead of the variable for the logged in user.

Is there anything in any of your profile files that modifies the PATH?

No modifiers

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS: windowsnon-issue / invalidThis isn't relevant to nvm, or turned out to be something unrelated.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions