/usr/local permission issues

I have an M1 Max running Ventura 13.2.1. I need to figure out how to change certain permission issues. I know that /usr/local generally shouldn't change permissions, however, whenever I attempt to update npm, npx, node, etc. it locks me out until I go through a strange process where it then finally works and updates. I have tried taking ownership through terminal of just certain items, the /usr/local/bin folder (which I know I shouldn't do and don't really want to), and any number of other "fixes". I just want a solution so that when I go to update it doesn't take me 30 minutes to an hour because I can't remember the work around I used the last time. This shouldn't be this difficult - npm update wants to rename the npm file so it can do the update, but it's always a no go. Any thoughts would be appreciated outside of "you shouldn't do that, you don't need to, etc" as I have already said I am aware of that. I need a simple, constructive solution. Thanks in advance.

MacBook Pro, OS X 10.11

Posted on Mar 18, 2023 5:01 PM

Reply

Similar questions

3 replies

Mar 19, 2023 1:56 AM in response to Whitney725

For the record, I have installed Node/NPM with Homebrew.


If you continue to stumble in errors every time an update is attempted then I'd consider to uninstall your current version and start a new installation from scratch with Homebrew.


A couple of tutorials I quickly found regarding the installation:

https://medium.com/@hayasnc/how-to-install-nodejs-and-npm-on-mac-using-homebrew-b33780287d8f

https://phoenixnap.com/kb/install-npm-mac

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

/usr/local permission issues

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.