fnm icon indicating copy to clipboard operation
fnm copied to clipboard

[Question] Why every time I open a terminal a new folder is added inside the fnm_multishells folder

Open kallookoo opened this issue 10 months ago • 4 comments

Currently I only have one node installation and from my point of view it does not make sense, it would be more logical to update a single element that could be called current and point to the corresponding version.

I see what happens when I start a terminal either a window or tab is happening.

The reason for all this is that for example I use Mac and the default Terminal and has the option in the context menu to open the man page externally using x-man-page but in the PATH does not exist, the same happens with the binaries installed by brew.

I found a solution for the brew case, but it is not functional because of the way the program modifies the PATH.

I also find the program much better than nvm, for example.

kallookoo avatar Mar 08 '25 12:03 kallookoo

As it is not likely to change much the node man, I have taken the easy way and directly specified a fnm.man.conf that indicates that it is in $HOME/.local/share/fnm/aliases/default/share/man

sudo mkdir -p /usr/local/etc/man.d
sudo tee /usr/local/etc/man.d/fnm.man.conf <<'EOF' >/dev/null
manpath "$HOME/.local/share/fnm/aliases/default/share/man:$manpath"
EOF

Personally you can close the issue, although I am not sure if the solution is the right one for the moment it works for me.

Thanks for everything

kallookoo avatar Mar 13 '25 11:03 kallookoo

Figured out that in C:\Users\MyUser\AppData\Local\fnm_multishells I have 471 folders 😶. I don't know what's going on but in each folder I have the whole node/npm etc... executables

Update: ok its just hundred of symlink to the C:/Users/MyUser/AppData/Roaming/fnm/aliases/default

oom- avatar Apr 04 '25 11:04 oom-

@oom- That folder creates a folder (node version) for each shell session.

You have several issues about it, I found it confusing too but it is the only way (apparently) to always use the correct version.

kallookoo avatar Apr 04 '25 11:04 kallookoo