-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
ZSH "Insecure Directories" Error After Running Install Script on MacOS #222
Comments
The issue happens because To fix the issue you need to run: sudo chmod g-w /usr/local/share/zsh/site-functions
sudo chmod g-w /usr/local/share/zsh Since this requires Might be worth adding this info to the Troubleshooting section of the README, I can PR it if necessary. |
Waiting for the Bun development team can resolve this problem radically. |
@Penggeor Show me the compaudit after running those commands - if you still can’t figure it out you can always get rid of the lines after The post and its comments on this stack overflow answer may help. |
Hi @UltimatePro-Grammer, thanks for filing this issue and sorry about the install trouble. Is this still happening when you install using the |
@Electroid Yes, I am still able to reproduce this issue. Also, the code causing the problem has not been modified. It seems to be a problem fundamental to ZSH experienced by lots of projects, so a troubleshooting note might be best. |
I've used the above method, but the installation still reports an error |
@king-open What is the output of |
@NateLevin1 i ran that command for all of these directories and the error still occurs. here's the output of
neither the |
@DetachHead You might have some luck trying one of the solutions from this thread: zsh-users/zsh-completions#680 (comment) . It could be that the user differs as well. |
I'm getting this message when installing bun from a different user on my mac. A few of the suggestions here didn't work for me. I decided to comment out |
Installing Bun from NPM worked for me pnpm -g i bun |
Additionally, I had to change
|
Environment
First stepRun the
Second stepChange the directory permissions.
Third stepNow you can run the 🎉 It works for me. |
I have tried many suggestions, including the most recent made by @wylu1037 but it still persists:
It started yesterday after I migrated everything from my old MacBook to my new one and it put my old user on there too, I have since deleted the old user from my new MacBook. I also have no idea who "staff" is. Any tips please? |
From this discord message.
After downloading Bun via the install script on macOS, upon opening a new terminal, the following message is output:
The simple fix is to comment out the line after
# bun completions
in~/.zshrc
, but I think fixing this would make downloading bun "just work" better out of the box. I'll look into this further to see if I can figure out the root cause of the issue.Edit: The problem is specifically to do with the
source "/Users/NAME/.bun/_bun"
command which is added to the zshrc on install. When executed, it prints the error message above.The text was updated successfully, but these errors were encountered: