Schniz / fnm

🚀 Fast and simple Node.js version manager, built in Rust
https://fnm.vercel.app
GNU General Public License v3.0
18.23k stars 467 forks source link

Updating fnm resulted in "Can't create the symlink for multishells at ..." error - macOS #1163

Open iarata opened 5 months ago

iarata commented 5 months ago

After I updated fnm with homebrew running fnm env (with and without --use-on-cd) resulted in the following error:

error: Can't create the symlink for multishells at "/Users/[user]/.local/state/fnm_multishells/23119_1717475228481". Maybe there are some issues with permissions for the directory? No such file or directory (os error 2)

I have removed and reinstalled the fnm both using the script and just homebrew but the issue still exists (I also checked, and there is no such folder as fnm_multishells in state)

Environment:

Schniz commented 5 months ago

do you have a ~/.local/state directory? maybe fnm can't write to it?

iarata commented 5 months ago

@Schniz I have the ~/.local/state folder and the owner is set to root with drwxr-xr-x. Is this a new feature for fnm to use this path?🤔

Schniz commented 5 months ago

Yes although maybe there's an error in the lookup (we need to see if the previous runtime directory exists and we probably fail to do that)

Sly777 commented 5 months ago

Hey all, I also have same issue at the moment after the latest update. I use brew for installation before. I have macOS Sonoma 14.5

error: Can't create the symlink for multishells at "/Users/UserName/.local/state/fnm_multishells/36913_1717662822882". Maybe there are some issues with permissions for the directory? No such file or directory (os error 2)
Att22 commented 5 months ago

I was able to resolve it by following steps