Open
Description
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.
Metadata
Assignees
Labels
No labels
Activity