Make the nvm list can detect the symlinks in the nvm-windows root directory #1030
Unanswered
Humbunklung
asked this question in
General
Replies: 1 comment 1 reply
-
|
I've converted this to an issue (#1031). If you'd like to submit your code as a PR against that issue, I can test/merge it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The nodejs installed by Visual Studio work load, cannot be added to the nvm list, especially the one is not in the environment variable path. I can make symlinks in the root directory link the origin node path created by visual studio. For example, v16.14.0 links to "C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VisualStudio\NodeJs".

However, the command "nvm list" can not list the node's symlinks added by me, because in the file node.go,

files[i].IsDir()will return false, while files[i] is a symlink.I modified the function
GetInstalledlike this:Then my problem solved, the symlinks are detected.

Beta Was this translation helpful? Give feedback.
All reactions