Automatic updates command
Status Closed — duplicate
Maintainer reply None cached
Activity 5 comments · opened Feb 27, 2025 · closed Feb 27, 2025
Claude code suggests running:
sudo chown -R $USER:$(id -gn) /usr/local && sudo chmod -R u+w /usr/local
I think there's a few issues with this. Firstly, asking the user to change perms for /usr/local itself, recursively, is way more broad than just changing the npm prefix directory. All sorts of stuff lives there (eg my Golang installation), and I'm not sure it's good to mess with the perms those things as well. Secondly, id -gn returns staff for me on macOS, though the current/default directory perms are :admin and I think that should be retained.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗