Automatic updates command
Resolved 💬 5 comments Opened Feb 27, 2025 by itsaphel 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 ↗