Skip to content
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

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

Open
iarata opened this issue Jun 4, 2024 · 5 comments

Comments

@iarata
Copy link

iarata commented Jun 4, 2024

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:

  • Shell: zsh
  • OS: macOS 14.5 (23F79)
@Schniz
Copy link
Owner

Schniz commented Jun 4, 2024

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

@iarata
Copy link
Author

iarata commented Jun 4, 2024

@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
Copy link
Owner

Schniz commented Jun 4, 2024

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

Sly777 commented Jun 6, 2024

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

Att22 commented Jun 14, 2024

I was able to resolve it by following steps

  • cd /Users/username/.local
  • sudo chown -R username state
  • fnm env
  • fnm use

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

4 participants