coreybutler/nvm-windows

[Issue]:

maxl960 opened this issue · 1 comments

What happened?

I use scoop install nvm, but the command "nvm use" dosen't work.
屏幕截图 2024-10-30 150404

What did you expect to happen?

I can use "nvm use" to change the nodejs version

Version

1.1.11 or newer (Default)

Which version of Windows?

No response

Which locale?

None

Which shell are you running NVM4W in?

No response

User Permissions?

Administrative Privileges, Elevated

Is Developer Mode enabled?

None

Relevant log/console output

No response

Debug Output

is not using admin or elevated rights.

命令提示符 - nvm  debug
Windows Version: 10.0 (Build 22631)

Windows Developer Mode: UNKNOWN (user cannot read registry)

NVM4W Version:      1.1.12
NVM4W Path:         E:\apps\Scoop\shims\nvm.exe
NVM4W Settings:     E:\apps\Scoop\apps\nvm\current\settings.txt
NVM_HOME:           E:\apps\Scoop\apps\nvm\current
NVM_SYMLINK:        $persist_dir\nodejs\nodejs
Node Installations: E:\apps\Scoop\persist\nvm\nodejs

Total Node.js Versions: 6
Active Node.js Version: none
(run "nvm use <version>" to activate a version)
NVM_SYMLINK does not exist yet. This is auto-created when "nvm use" is run.

IPv6 is enabled. This can slow downloads significantly.

PROBLEMS DETECTED
-----------------
Another Node.js installation is blocking NVM4W installations from running. Please uninstall the conflicting version or update the PATH environment variable to assure "$persist_dir\nodejs\nodejs" precedes "E:\apps\Scoop\apps\nvm\current\nodejs\nodejs".

"命令提示符 - nvm  debug" is not an officially supported shell. Some features may not work as expected.


The NVM4W symlink ($persist_dir\nodejs\nodejs) was not found in the PATH environment variable.


Find help at https://github.com/coreybutler/nvm-windows/wiki/Common-Issues

Anything else?

No response

The debug message tells you the problem and resolution:

Another Node.js installation is blocking NVM4W installations from running. Please uninstall the conflicting version or update the PATH environment variable to assure "$persist_dir\nodejs\nodejs" precedes "E:\apps\Scoop\apps\nvm\current\nodejs\nodejs".

See this common problem for details.