Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kallookoo opened this issue Mar 8, 2025 · 3 comments

Comments

@kallookoo
Copy link

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
Copy link
Author

kallookoo commented Mar 13, 2025

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

@oom-
Copy link

oom- commented Apr 4, 2025

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

@kallookoo
Copy link
Author

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants