Skip to content

Automatic updates command #186

Open
Open
@itsaphel

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions